Scroll to navigation

GO(1) Go programming tools and commands GO(1)

NAME

go - tool for managing Go source code

SYNOPSIS

go command [arguments]

DESCRIPTION

The Go distribution includes a command, named go, that automates the downloading, building, installation, and testing of Go packages and commands.

COMMANDS

Each command is documented in its own manpage. For example, the build command is documented in go-build(1).

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
workspace maintenance
compile and run Go program
manage telemetry data and settings
test packages
run specified go tool
print Go version
report likely mistakes in packages

Use “go help <command>” for more information about a command.

Additional help topics:

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
module proxy protocol
import path syntax
modules, module versions, and more
module authentication using go.sum
package lists and patterns
configuration for downloading non-public code
testing flags
testing functions
controlling version control with GOVCS

Use “go help <topic>” for more information about that topic.

AUTHOR

This manual page was created using help2man and afterwards updating the output. It is maintained by the Debian Go Compiler Team <team+go-compiler@tracker.debian.org> for the Debian project (and may be used by others).

2026-02-19 Go 1.26