there are linters that will help you with that.
https://github.com/kisielk/errcheck
https://golangci-lint.run/usage/linters/ has a solid set of options.
https://github.com/kisielk/errcheck
https://golangci-lint.run/usage/linters/ has a solid set of options.