Array type
An array is a numbered sequence of elements of a single type, called the element type. The number of elements is called the length and is never negative.
Source: (example.go)
package main
import "fmt"
func main() {
var x [5]int
x[0] = 100
x[1] = 110
x[2] = 120
x[3] = 130
x[4] = 140
fmt.Println(x)
}
Output:
$ go run example.go
[100 110 120 130 140]