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 enero de 2019, 0:47:50 (UTC-5), John escribió: > > Dear Gophers, > > I am a beginner gopher has created a project of Connect Five. The > game's board is shown in a dot array like this > > ............... > ............... > ............... > And to input, you have to put in the exact coordinates of the place > you want to place, like this 1 3. You would have to carefully count the > dots and then input, which is a pain for the eyes. So I wonder if it is > possible to make a array like this and how: > > > 11 12 13 14 > 21 22 23 24 > 31 32 33 34 > > > > Thank you, > > > > John > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.