Skip to content

Instantly share code, notes, and snippets.

@hajimehoshi
Created August 26, 2010 16:48
Show Gist options
  • Save hajimehoshi/551745 to your computer and use it in GitHub Desktop.
Save hajimehoshi/551745 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
)
func main() {
a := [...][4]int{
[...]int{1,2,3,4},
[...]int{1,2,3,4},
[...]int{1,2,3,4},
[...]int{1,2,3,4},
}
fmt.Printf("len(a) == %d, len(a[0]) == %d\n", len(a), len(a[0]))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment