The Go tool
One of the convenient things about Go – as a programming language – is that a single tool handles all interactions with, and operations on, the source code. When installing Go, make sure that the go
tool is in the searchable OS path so that you can invoke it from any command-line terminal. The user experience, regardless of the OS or platform architecture, is uniform and doesn't require any customization when moving from one machine to another.
IDEs also use the go
tool to build and run code, report errors, and automatically format Go source code. The go
executable accepts a verb as the first argument that determines what go
tool function to apply to Go source files:
$ go
Go is a tool for managing Go source code.
Usage:
go <command> [arguments]
The commands are:
bug start a bug report
build compile packages and dependencies
...
mod module maintenance
run compile and run Go program...