February 2019
Intermediate to advanced
450 pages
11h 59m
English
With all of the appropriate compilers and libraries installed, we can continue to the build phase. For each of the target operating systems, you will need to run through these steps with the correct environment variables set. It is recommended to build for one platform and then complete the packaging step listed in the following table before changing to the next configuration. This is because the release binary for one platform may overwrite another (for example, macOS and Linux binaries have the same name when compiled). Note that when building a release for the current platform, you can omit the CGO_ENABLED and CC environment variables:
| Target Platform | GOOS= | CGO_ENABLED= | CC= | Notes |
|
macOS |
darwin |
1 |
o32-clang |
Make sure ... |
Read now
Unlock full access