Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Tag string = "v0.0.2-e6ef5ccb" // Version is the current version of the program Version string = "0.0.1" // CommitHash is the current commit hash of the program CommitHash string = "unknown" // BuildTime is the current build time of the program BuildTime string = "unknown" )
Functions ¶
func GetVersionFromGit ¶
Types ¶
type ProgramVersion ¶
type ProgramVersion struct { Tag string `json:"tag"` Version string `json:"version"` CommitHash string `json:"commit_hash"` BuildTime string `json:"build_time"` }
ProgramVersion is the version object of the program
var PV ProgramVersion
PV is the current version object of the program
func (ProgramVersion) Short ¶
func (v ProgramVersion) Short() string
Short returns the short version of the program
Click to show internal directories.
Click to hide internal directories.