Skip to content

gostaticanalysis/zerolit

Repository files navigation

zerolit

pkg.go.dev

zerolit finds return zero values but they are not literal.

Install

You can get zerolit by go install command (Go 1.16 and higher).

$ go install github.com/gostaticanalysis/zerolit@latest

How to use

zerolit run with go vet as below when Go is 1.12 and higher.

$ go vet -vettool=$(which zerolit) ./...

Analyze with golang.org/x/tools/go/analysis

You can get analyzers of zerolit from zerolit.Analyzers. And you can use them with unitchecker.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages