Search⌘ K

Building Go Packages

Explore how Go handles package building with caching for efficiency. Understand how to use the -a flag to force rebuilding all packages and the -n flag to preview build commands without executing. This lesson prepares you to analyze build processes and prepare for linking in Go.

We'll cover the following...

Building packages

Go uses caching of pre-built dependencies. To see what would happen if we had to build everything from scratch we can use the -a and -n flags. The -a flag forces a rebuild of all packages, and t. The -n flag just prints the commands that need to ...