Go: Percent sign in fmt format

Use the special verb %%, which consumes no argument, to write a literal percent sign:

fmt.Printf("%d %%", 50) // prints "50 %"

Comments

Be the first to comment!