March 2020
Intermediate to advanced
406 pages
8h 39m
English
Go's build flags are all shared by the build, clean, install, list, run, and test commands. A table stating the build flags and their usage descriptions is as follows:
| Build flag | Description |
| -a | Forces packages to be rebuilt. This can be especially handy if you'd like to make sure that all of your dependencies are up to date. |
| -n | Prints the commands that the compiler utilizes but doesn't run the commands (akin to a dry run in other languages). This is useful to see how a package gets compiled. |
| -p n | Parallelizes your build commands. By default, this value is set to the number of CPUs that are available to the build system. |
| -race | Enables race detection. Only certain architectures have the ability to detect race detections: ... |
Read now
Unlock full access