Categories
Data Structure and Algorithm

Create and Print a 2D Slice

https://play.golang.org/p/F5MTsF_Z1J1

// in Go Data Structures and algorithms book
package main

// importing fmt package
import (
	"fmt"
)

// main method
func main() {
	var TwoDArray [8][8]int
	TwoDArray[3][6] = 18
	TwoDArray[7][4] = 3
	fmt.Println(TwoDArray)
}