Skip to content

Instantly share code, notes, and snippets.

@xin053
Created July 7, 2019 07:06
Show Gist options
  • Select an option

  • Save xin053/8a97214e8c05a32107cdb88a3b632526 to your computer and use it in GitHub Desktop.

Select an option

Save xin053/8a97214e8c05a32107cdb88a3b632526 to your computer and use it in GitHub Desktop.
[go fmt] go fmt #go #fmt
// [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