Documentation
¶
Overview ¶
Package build extracts version information from current binary.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildId ¶
BuildId tries to extract the first 7 digits of the git commit checksum from the version string. If it cannot do this, it just returns the version string. If version string ends with "+dirty" then the return value will also end with "+dirty"
func MainVersion ¶
MainVersion returns the module version of the binary's main package
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.