Does Go's fmt.Printf
support outputting a number with the thousands comma?
fmt.Printf("%d", 1000)
outputs 1000
, what format can I specify to output 1,000
instead?
The docs don't seem to mention commas, and I couldn't immediately see anything in the source.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…