Format Strings outside Printf
If you declare format strings for Printf-style functions outside a string
literal, make them const values.
This helps go vet perform static analysis of the format string.
| Bad | Good |
|---|---|
| ```go msg := "unexpected values %v, %v\n" fmt.Printf(msg, 1, 2) ``` | ```go const msg = "unexpected values %v, %v\n" fmt.Printf(msg, 1, 2) ``` |