Created
October 16, 2025 11:20
-
-
Save Integralist/ec8cd46441b505dc272279d29414980f to your computer and use it in GitHub Desktop.
Go: fmt indexing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package main | |
| import "fmt" | |
| func main() { | |
| fmt.Printf("%[1]s %[1]s %[2]s %[2]s %[3]s", "one", "two", "three") // yields "one one two two three" | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment