github.com/go-pogo/buildinfo (go): Package buildinfo provides basic building blocks and instructions to easily add build and release information to your app.  # Using ldflags Declare build info variables in your main package:  Build your Go project and include the following ldflags:  # Prometheus metric collector When using a metrics scraper like Prometheus, it is often a good idea to make the build information of your app available. Below example shows just how easy it is to create and register a collector with the build information as constant labels.
Keywords: build|build-info|go|golang|ldflags|revision|version