This project is a convenience module to wrap debug.buildinfo and provide easy to access version information for a running program. Programs built using this module will derive their version information from one of the following:
- The
github.com/packetspace/buildinfo.versionvariable, when set using the-Xbuild flag - The version target of a
go installbuild - A default string (currently
(unknown))
Version information is always available to a running program at buildinfo.Default.AppVersion(), with extra information available from additional methods.
Contributions of code and documentation are welcome, as are bug reports and suggestions! Please see the project's CONTRIBUTING page for more information.