README
¶
buildtag/timebomb
timebomb
timebomb finds suspicious build tags such as below.
- a build tag which has "go" prefix and it corresponds to a version which does not start development yet
Install
You can get timebomb
by go install
command (Go 1.16 and higher).
$ go install github.com/gostaticanalysis/buildtag/timebomb/cmd/timebomb@latest
How to use
timebomb
run with go vet
as below when Go is 1.12 and higher.
$ go vet -vettool=$(which timebomb) ./...
Analyze with golang.org/x/tools/go/analysis
You can use timebomb.Analyzer with unitchecker.
Click to show internal directories.
Click to hide internal directories.