There is a useful linter named `errcheck` for Go which looks for swallowed or shadowed errors [1]. It's included in `gometalinter` [2] (which is worth running as part of the CI checks on any Go codebase).
[1] https://github.com/kisielk/errcheck [2] https://github.com/alecthomas/gometalinter