justforfunc #36: Versions, build constraints, and ldflags
justforfunc: Programming in Go
0:00 / 0:00
justforfunc #36: Versions, build constraints, and ldflags
9 417 просмотров · 8 лет назад
justforfunc: Programming in Go
39,9 тыс. подписчиков
9 417 просмотров · 8 лет назад
During my Go Tooling in Action Workshop (https://github.com/campoy/go-tooling-...)
many people ask how to include version information to binaries,
so I decided to make an episode out of it!
We will solve the problem using three different techniques:
constants and build constraints
variables and build constraints
variables and ldflags
source code: https://github.com/campoy/justforfunc...
form: http://form.justforfunc.com
planning:
/ 1011671677594370049