go command
Authoritative documentation for the go command, including generate, workspace maintenance, package visibility rules, testing conventions, and vendoring commands.
Authoritative documentation for the go command, including generate, workspace maintenance, package visibility rules, testing conventions, and vendoring commands.
- Author: Go Team
- Authority: primary
- Kind: package-doc
- URL: https://pkg.go.dev/cmd/go
What it covers
- go command subcommands and conventions
- internal and vendor directory visibility rules
- generate, workspace, and testdata behavior
Why authoritative
Canonical command documentation published with the Go toolchain.
Use when
- what does the go command do here
- how do internal packages work in Go
- how should go generate or vendoring be used
Keywords
- go command, go generate, go work, internal packages, vendor, testdata