package main import "fmt" func main() { arr := [...]string{"apple", "orange", "pear"} fmt.Printf("Length of %v is %v.\n", arr, len(arr)) }