How do I create an array of int arrays in Golang using slice literals?
I've tried
test := [][]int{[1,2,3],[1,2,3]}
and
type Test struct {
foo [][]iint
}
bar := Test{foo: [[1,2,3], [1,2,3]]}
How do I create an array of int arrays in Golang using slice literals?
I've tried
test := [][]int{[1,2,3],[1,2,3]}
and
type Test struct {
foo [][]iint
}
bar := Test{foo: [[1,2,3], [1,2,3]]}