You can put loops inside other loops:
for i := 0; i < 3; i++ {
for j := 0; j < 3; j++ {
fmt.Printf("(%d,%d) ", i, j)
}
fmt.Println()
}
The inner loop runs completely for each iteration of the outer loop. This prints a x grid of coordinate pairs. Nested loops are common for working with D data.