staticcheck

State-of-the-art linter for Go that finds bugs and performance issues

brewmacoslinux
Try with needOr install directly
Source

About

State of the art linter for the Go programming language

Commands

staticcheck

Examples

Lint the current package and all subdirectories$ staticcheck ./...
Lint a specific Go file$ staticcheck myfile.go
Lint with verbose output showing all checks performed$ staticcheck -explain=U1000 ./...