Go Class: 41 Building Go Programs

Опубликовано: 11 Июль 2026
на канале: Matt KØDVB
6,011
199

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-...

Code at: https://github.com/matt4biz/go-class-...