There are two ways to invoke vet:
go vet, which operates on packages but does not take options:
usage: vet [-n] [-x] [packages]
go tool vet, which takes options but operates on files or directories:
Usage of vet:
vet [flags] directory...
vet [flags] files... # Must be a single package
It would be good to have parity between go vet and go tool vet one way or the other: either go tool vet should be able to operate on packages, or go vet should accept options. Perhaps go tool vet should be a superset of go vet.
There are two ways to invoke
vet:go vet, which operates on packages but does not take options:usage: vet [-n] [-x] [packages]go tool vet, which takes options but operates on files or directories:It would be good to have parity between
go vetandgo tool vetone way or the other: eithergo tool vetshould be able to operate on packages, orgo vetshould accept options. Perhapsgo tool vetshould be a superset ofgo vet.