浏览 167
分享
Format Strings outside Printf
If you declare format strings for Printf
-style functions outside a stringliteral, make them const
values.
This helps go vet
perform static analysis of the format string.
Bad | Good |
---|---|
|
|
评论列表