3 ms·
`staticcheck` will statically analyze your code and suggest all places where the new conversion rule can be applied. All the other rules are same as the last 7
by shurcooL 10y ago
`staticcheck` will statically analyze your code and suggest all places where the new conversion rule can be applied.
All the other rules are same as the last 7 years, you know them through experience after using Go for a week. Way simpler than most other languages.
That go fix command can be typed once and update millions of lines of code. Pretty simple.
- notforgot 10y agoThese rules intimidate me (I don't know Go). You also meant to say the go fix command does a lot (which is great), not that calling it is simple (which is not great).