Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Version (set by compiler) is the version of program Version = "undefined" // BuildTime (set by compiler) is the program build time in '+%Y-%m-%dT%H:%M:%SZ' format BuildTime = "undefined" // GitHash (set by compiler) is the git commit hash of source tree GitHash = "undefined" )
Functions ¶
func HasPrintedVersion ¶
func HasPrintedVersion() bool
HasPrintedVersion outputs the binary version when command-line flag "-v" is set. It returns true if flag is set.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.