Code samples from Go Cookbook. Chapter: embedding build number in Go executable. Legend: main.go : test program build.sh : mac/unix build script build.ps1 : windows build script