Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Version ¶
type Version struct { Version string `json:"version,omitempty"` Prerelease string `json:"prerelease,omitempty"` Metadata string `json:"build_metadata,omitempty"` Revision string `json:"revision,omitempty"` BuildDate string `json:"build_date,omitempty"` }
Version is a container for version information.
func GetVersion ¶
func GetVersion() Version
GetVersion produces a Version that includes fields set based on version package variables.
func (Version) FullVersionNumber ¶
FullVersionNumber produces a human-readable string representation of the Version object. In addition to a short slug that includes the product name (hcdiag) and the semantic version, the Revision will be included if the optional argument, `rev`, is true. Further, if a buildDate is set, it is also included in the output.
func (Version) SemanticVersion ¶
SemanticVersion produces a semantic version number from a Version object.
Click to show internal directories.
Click to hide internal directories.