// getting the length of an array is silly, because the length is part of the array's static typemyArray := [3]int{1, 2, 3}


fmt.Println(len(myArray)) // prints 3


// getting the length of a slice


mySlice := []int{1, 2, 3}


fmt.Println(len(mySlice)) // prints 3