编译golint
C:\Go\src\github.com\golang\lint\golint>go build golint.go # command-line-arguments .\golint.go:44: undefined: allPackagesInFS .\golint.go:52: undefined: importPaths
Don't use a list of filenames withgo build
. You've skipped theimport.go
file. Just rungo build
.