10.7 The Go Tool
The rest of this chapter concerns the go
tool, which is used
for downloading, querying, formatting, building, testing, and
installing packages of Go code.
The go
tool combines the features of a diverse set of tools
into one command set.
It is a package manager (analogous to apt
or rpm
) that answers
queries about its inventory of packages, computes their dependencies,
and downloads them from remote version-control systems.
It is a build system that computes file dependencies and invokes
compilers, assemblers, and linkers, although it is intentionally less
complete than the standard Unix make
.
And it is a test driver, as we will see in Chapter 11.
Its command-line interface uses the “Swiss army knife” style, with over
Get The Go Programming Language now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.