errcheck

Finds silently ignored errors in Go code

brewmacoslinux
Try with needOr install directly
Source

About

Finds silently ignored errors in Go code

Commands

errcheck

Examples

Check all Go files in the current directory$ errcheck ./...
Check a specific Go package$ errcheck github.com/user/mypackage
Check with custom ignore patterns for specific functions$ errcheck -ignore 'fmt:.*' ./...