You can initialize an array with values using a literal:
numbers := [5]int{1, 2, 3, 4, 5}
names := [3]string{"Alice", "Bob", "Carol"}
Let Go count the elements for you with ...:
numbers := [...]int{1, 2, 3, 4, 5} // size is 5
The compiler counts the elements and sets the array size. This prevents mismatches between the size and the number of values.