Write Once, Compile Lots, Run Anywhere
summary
Claims that Go makes distribution practical by cross-compiling to native binaries: demonstrates using GOOS/GOARCH with go build and go env to produce multiple targets (he counts ~44 combos but focuses on darwin/linux/windows amd64), uses goreleaser and Docker to script builds and reuse module caches, shows asset bundling into one static binary, and warns that PT_INTERP missing on Alpine (CGO-enabled builds can produce dynamic ELF interpreters that break on other distros).
AI-written summary · about
chapters (18)
- 0:00Introduction
- 0:46Compile to Machine Code
- 1:01Duke
- 1:37Java
- 3:23Different JVMs
- 4:32Multiplatform distribution
- 5:57The tool chain
- 8:14GoReleasers
- 8:48Docker
- 10:16CrossCompile
- 12:57Dynamic Linking
- 14:38Not Found
- 16:33Disable CGO
- 18:08broadly compatible
- 18:54crypto functions
- 20:03platformspecific logic
- 22:45how to use tags
- 24:22how tags work








