Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( NAME string // name of program VERSION = "0.0.0" // version of the program BUILDTIME string // build-time of the compiled program GITCOMMIT string // commit signature DEVSUFFIX = "-dev" // appended to the version without a GITCOMMIT )
exported variables
Functions ¶
Types ¶
type ModuleVersion ¶
type ModuleVersion struct { Name string `json:"name,omitempty"` // name of the module Version string `json:"version"` // version of the module GitCommit string `json:"gitcommit,omitempty"` // commit hash, if available }
ModuleVersion allows a module/plugin to register itself with a version number
type Version ¶
type Version struct { Name string `json:"name,omitempty"` // name of program Version string `json:"version"` // version of the program GoVersion string `json:"goversion"` // go compiler BuildTime string `json:"buildtime,omitempty"` // built time GitCommit string `json:"gitcommit,omitempty"` // commit hash Modules []ModuleVersion `json:"modules,omitempty"` // a list of registered modules }
func (Version) AllModules ¶
AllModules lists all modules with shortname/version
func (Version) LongString ¶
LongString returns String() + (AllModules())
func (Version) SimpleVersion ¶
SimpleVersion returns a version string like progname/version[-dev]
Click to show internal directories.
Click to hide internal directories.