Think before you speak, read before you think.

golang fmt

https://pkg.go.dev/fmt

# %g

%g %e for large exponents, %f otherwise. Precision is discussed below.
fmt.Printf(“%g feet is %g meters.\n”, feet, meters)


Comments

Leave a Reply

Your email address will not be published. Required fields are marked *