package main import ( "fmt" "unsafe" ) // Make a 2-d slice // then show the locations of items in the slice // // to make 2d, need to allocate 2d, then actually make // the set of 1d rows. So you are explicitly // building the column-major memory alignment. func main() { d1:=3 d2:=5 matrix := make([][]int16, d1) for i:=0; i %v\n", i, j,s[len(s)-4:]) } } }