CmdID

CmdID / Commands

go-vet

Check Go source code and report suspicious constructs (e.g. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Check Go source code and report suspicious constructs (e.g. lint your Go source files). Go vet returns a non-zero exit code if problems are found; returns a zero exit code if no problems are found.

Check the Go package in the current directory

go vetIdentify

Check the Go package in the specified path

go vet path/to/file_or_directoryIdentify

List available checks that can be run with go vet

go tool vet helpIdentify

View details and flags for a particular check

go tool vet help check_nameIdentify

Display offending lines plus n lines of surrounding context

go vet -c=nIdentify

Output analysis and errors in JSON format

go vet -jsonIdentify