Documentation
¶
Overview ¶
- Start a bug report
- Compile packages and dependencies
- Remove object files and cached files
- Show documentation for package or symbol
- Print Go environment information
- Apply fixes suggested by static checkers
- Gofmt (reformat) package sources
- Generate Go files by processing source
- Add dependencies to current module and install them
- Compile and install packages and dependencies
- List packages or modules
- Module maintenance
- Download modules to local cache
- Edit go.mod from tools or scripts
- Print module requirement graph
- Initialize new module in current directory
- Add missing and remove unused modules
- Make vendored copy of dependencies
- Verify dependencies have expected content
- Explain why packages or modules are needed
- Compile and run Go program
- Manage telemetry data and settings
- Test packages
- Run specified go tool
- Print Go version
- Report likely mistakes in packages
- Workspace maintenance
- Edit go.work from tools or scripts
- Initialize workspace file
- Sync workspace build list to modules
- Add modules to workspace file
- Make vendored copy of dependencies
- Build constraints
- Build -json encoding
- Build modes
- Calling between Go and C
- Build and test caching
- Environment variables
- File types
- GOAUTH environment variable
- The go.mod file
- GOPATH environment variable
- GOPATH mode
- GOPATH mode vendor directories
- Module proxy protocol
- Import path syntax
- Internal packages
- Fully-qualified import paths
- Modules, module versions, and more
- Module authentication using go.sum
- Package lists and patterns
- File system patterns
- Import path patterns
- Reserved names
- List of .go files
- Package names
- Configuration for downloading non-public code
- Testing flags
- Testing functions
- Controlling version control with GOVCS
Go is a tool for managing Go source code.
Usage: