aboutsummaryrefslogtreecommitdiffstats
path: root/exercises/slices/slices1/main.go
blob: 291f33dd69013171c0a3677b248dedeb9906eefc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// slices1
// Make me compile!

// I AM NOT DONE
package main

import "fmt"

func main() {
	a := make(, 3, 10) // play with length and capacity
	fmt.Println("length of 'a':", len(a))
	fmt.Println("capacity of 'a':", cap(a))
}