Does Go\'s fmt.Printf support outputting a number with the thousands comma?
fmt.Printf
fmt.Printf(\"%d\", 1000) outputs 1000, what format
fmt.Printf(\"%d\", 1000)
1000
I wrote a library for this as well as a few other human-representation concerns.
Example results:
0 -> 0 100 -> 100 1000 -> 1,000 1000000000 -> 1,000,000,000 -100000 -> -100,000
Example Usage:
fmt.Printf("You owe $%s.\n", humanize.Comma(6582491))