build { mae.earth/pkg/build }

Documentation Go Report Card

Simple build package to record useful information in the output binary.

Install with


go get mae.earth/pkg/build

Build your binary with the following build flags.


go build -ldflags "-X mae.earth/pkg/build.Version={version} -X mae.earth/pkg/build.User={user} -X mae.earth/pkg/build.Date={date} -X mae.earth/pkg/build.GitHash='{hash}'"