Created
July 7, 2019 07:06
-
-
Save xin053/8a97214e8c05a32107cdb88a3b632526 to your computer and use it in GitHub Desktop.
[go fmt] go fmt #go #fmt
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
| // [Sp|Fp|P]rintf 支持位置参数 | |
| package main | |
| import "fmt" | |
| func main() { | |
| fmt.Printf("%[3]v, %[2]v, %[1]v", 1, 2, 3) //3, 2, 1 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment