Here is my code:
type Square struct {
num int //Holds the number. 0 is empty
}
func somefunc() {
squares := [4][4]Square
But I get this error:
type [4][4]Square is not an expression
Here is my code:
type Square struct {
num int //Holds the number. 0 is empty
}
func somefunc() {
squares := [4][4]Square
But I get this error:
type [4][4]Square is not an expression
Use squares := [4][4]Square{}
to complete the composite literal, or use var squares [4][4]Square
to declare the variable.