Go Printf: Format Verbs, Width, Padding and Common Mistakes
A complete reference for fmt.Printf in Go: the format verbs, width and padding, printing structs, slices and maps, Sprintf and Fprintf, and what output like %!d(string=hi) means.
A complete reference for fmt.Printf in Go: the format verbs, width and padding, printing structs, slices and maps, Sprintf and Fprintf, and what output like %!d(string=hi) means.
How to convert a string to an int in Go and back again, with every related conversion (int64, float64, bool, []byte) and the errors you’ll run into.
Measured on Go 1.27: how -ldflags=”-s -w” and -trimpath shrink a Go binary, what you give up, and the trade-offs of compressing it with UPX.