3 ms·
It's baffling though that the compiler doesn't at least warn when you forget to check the err. So many edge cases with that (especially due to `:=` vs `=` if re
by nvarsj 8y ago
It's baffling though that the compiler doesn't at least warn when you forget to check the err. So many edge cases with that (especially due to `:=` vs `=` if reassigning a prior err).
- AlexCoventry 8y agoTry gometalinter. https://stackoverflow.com/questions/43898074/is-there-a-way-to-find-not-handled-errors-in-go-code https://stackoverflow.com/questions/43898074/is-there-a-way-...
- thegeekpirate 8y agoSpecifically (if wanted standalone) https://github.com/kisielk/errcheck https://github.com/kisielk/errcheck
- AlexCoventry 8y agoPersonally, I like my linter output in the style of a furious fruit salad, so I go for the kitchen sink.