John,
Here is a simple proof-of-concept implementation.
Playground: https://play.golang.org/p/Hd0dmazXI5v
Output:
11 12 13 14
21 22 23 24
31 32 33 34
XX 12 13 14
21 XX 23 24
31 32 XX 34
Peter
On Monday, January 14, 2019 at 12:47:50 AM UTC-5, John wrote:
>
> Dear Gophers,
>
>
It could be :
a := [3][4]string{"1 1", "1 2", "1 3", "1 4", "2 1", "2 2", "2 3", "2 4",
"3 1", "3 2", "3 3", "3 4" }
or
var a = [3][4]string
for (row = 0; row < 3; row++) {
for (col = 0; col < 4; col++) {
a[row][col] = fmt.Sprintf("%d %d", (row+1), (col+1)
}
}
El lunes, 14 de