
Go Arrays
Arrays have size - a fixed size, and cannot be resized (length is part of its type). How to declare: [size]type{} To create an empty array: var a [2]string an array of 2 values of type string. Can not mix types func main() { var a [2]int // if need just empty array b := [2]string{"one"} // with some elements in the array b[1] = "two" a[0] = 0 a[1] = 1 fmt....

