Hacker News new | ask | show | jobs
by pipe_connector 1299 days ago
https://github.com/kisielk/errcheck

Every Go project I've worked on has used this linter. I think it should be builtin, but it's very easy to incorporate.

2 comments

> but it's very easy to incorporate.

As someone who is adding this to a Go project with hundreds of unchecked errors, I disagree.

What kind of error does it check?
It looks for code where the err != nil hasn’t been handled