Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // BranchString is set by -ldflags in the Makefile - it contains the branch // at the time the project was built. BranchString string // VersionString is set by -ldflags in the Makefile - it contains the // latest version (tag or short rev) at the time the project was built. VersionString string // RevString is set by -ldflags in the Makefile - it contains the full git // revision at the time the project was built. RevString string )
Functions ¶
This section is empty.
Types ¶
type Version ¶
The Version struct contains data that is set when building via `-ldflags` in the Makefile. The struct member names indicate what data is included in this list.
func NewVersion ¶
func NewVersion() *Version
NewVersion returns a Version instance with values set based on the `-ldflags` and some sensible defaults.
Click to show internal directories.
Click to hide internal directories.