package main
import "fmt"
func main() {
// declaring a fixed size array
var a [2]string
a[0] = "Hello"
a[1] = "World"
fmt.Println(a[0], a[1])
fmt.Println(a)
// declaring an array and initializing
// it. note that you can't omit its size
// otherwise it becomes a slice!
primes := [6]int{2, 3, 5, 7, 11, 13}
fmt.Println(primes)
}
To embed this program on your website, copy the following code and paste it into your website's HTML: