justforfunc #36: Versions, build constraints, and ldflags
justforfunc: Programming in Go — Jun 28, 2018 — talk
Why watch
A practical tutorial demonstrating three techniques for embedding version information in Go binaries: using constants with build constraints, variables with build constraints, and ldflags for dynamic version injection at build time. Designed for Go developers building CLI tools or services that need version flags and build info.