You can use the [n] notation to specify explicit argument indexes like so:
fmt.Printf("%[1]d %[1]d\n", i)
Here is a full example you can experiment with: http://play.golang.org/p/Sfaai-XgzN
You can use the [n] notation to specify explicit argument indexes like so:
fmt.Printf("%[1]d %[1]d\n", i)
Here is a full example you can experiment with: http://play.golang.org/p/Sfaai-XgzN