A two dimensional array in Go require you to explicitly allocate the space for the whole array.

If you want a 2-D array with 4 rows and 5 columns of integer type, below is the sample code.

arr := make([][]int, 4)
for i := range arr{.
	arr[i] = make([]int, 5)
}