Source file tour/moretypes/array.go
1 //go:build OMIT 2 3 package main 4 5 import "fmt" 6 7 func main() { 8 var a [2]string 9 a[0] = "Hello" 10 a[1] = "World" 11 fmt.Println(a[0], a[1]) 12 fmt.Println(a) 13 14 primes := [6]int{2, 3, 5, 7, 11, 13} 15 fmt.Println(primes) 16 } 17