go vet [package]

Report likely mistakes in packages

Arguments

NameDescription
package

Options

NameDescription
-nPrint the commands but do not run them
-vPrint the names of packages as they are compiled
-xPrint the commands
-tags <tags>A comma-separated list of build tags to consider satisfied during the build
-toolexec <cmd>A program to use to invoke toolchain programs like vet and asm
-vettool <tool>Select a different analysis tool with alternative or additional checks