Go command
The go command is Go’s standard command-line interface for compiling, building, testing, formatting, analyzing, and managing Go programs and dependencies.
Go in Practice, Second Edition
The go tool is Go's command-line tool for compiling and performing other standard development tasks.
- How it is used
- Provides one command-line toolchain for building packages and handling routine development tasks.
- How deep it goes
- Shows task-level commands, test output, coverage, and cross-compilation settings; does not descend into compiler internals.
- Examples
- Uses a failing name-reversal test, a coverage report, and a Windows 386 build command.
- What you can do after
- Operate/configure it to test and measure Go code, manage dependencies, format code, and build for another platform.
Read how Go in Practice, Second Edition explains go command →
Learn Go with Pocket-Sized Projects
Go tooling is the integrated suite of Go development tools for formatting, linting, testing, benchmarking, building, and execution.
- How it is used
- Coordinates executable production, unit testing, benchmarking, and fuzzing during Go development.
- How deep it goes
- Explains the toolchain’s roles and testing capabilities but stops short of command syntax or implementation internals.
- Examples
- Uses executable builds, unit tests, algorithm benchmarks, commit-level performance checks, and randomized fuzz inputs.
- What you can do after
- Evaluate Go implementations with tests, compare performance with the built-in bench command, and probe behavior with fuzzing.
Read how Learn Go with Pocket-Sized Projects explains go command →
Also covered in
What to know first
- GoGo is a statically typed, compiled, general-purpose programming language with garbage collection and built-in support for concurrency.
- static analysisStatic analysis is the examination of source code or other software artifacts without executing the program to infer properties or identify potential issues.
Related concepts
- compileruses · A compiler is software that translates source code into another representation, such as machine code, bytecode, or an intermediate form.
- Gopart of · Go is a statically typed, compiled, general-purpose programming language with garbage collection and built-in support for concurrency.
- go.mod fileconfigured by · A go.mod file is a Go module manifest that declares the module path, Go language version, and required dependencies.
- packageuses · A software package is a named unit that groups related software components, either for organization and compilation or for distribution and reuse.
- trajectoryused by · A trajectory is an ordered record of states, actions, events, or operations showing how an agent or system progresses through an execution or process.
- build stageused by · A build stage is a phase or unit of a software build process that processes inputs and may produce outputs for later stages.
Questions about go command
What is go command?
The go command is Go’s standard command-line interface for compiling, building, testing, formatting, analyzing, and managing Go programs and dependencies.
Which Manning books explain go command?
Go in Practice, Second Edition and Learn Go with Pocket-Sized Projects.
What should I know before learning go command?
Manning books that teach go command usually introduce Go and static analysis first.
What is go command part of?
Go command is part of Go. Go is a statically typed, compiled, general-purpose programming language with garbage collection and built-in support for concurrency.
What is go command also called?
Go command is also called Go tool.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

