Golang arrays

In Golang, an array is a numbered sequence of elements of a specific length.

The below example is creating an array a that will hold exactly 5 ints.

var a [5]int
fmt.Println("array a:", a)
The type of elements and length are both part of the array’s type. By default an array is zero-valued.