Go Class: 41 Building Go Programs
6.1K views on YouTube
In this section I’ll discuss how to use go build, particularly to make a “pure” Go program; how to version your executable; some things about project layout and Makefiles; and how to build in Docker.
I have a complete demo on building & publishing a container and then running it on another machine, so you get a Docker lesson for free 🙂
UPDATE: use `git describe –tags –long –dirty –always` to get at least a hash when there’s no tag.
Slides at: https://github.com/matt4biz/go-class-slides/blob/trunk/xmas-2020/README.md
Code at: https://github.com/matt4biz/go-class-build