Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareVersions ¶
CompareVersions returns an integer comparing two versions according to semantic version precedence.
func FormatVersionString ¶
FormatVersionString adds or removes a "v" prefix from version string.
Types ¶
type Info ¶
type Info struct {
Version string `json:"version" yaml:"version"`
Commit string `json:"commit" yaml:"commit"`
Date string `json:"date" yaml:"date"`
}
Info holds the concrete version information.
func (Info) GetVersion ¶
func (Info) IsDevelopment ¶
Click to show internal directories.
Click to hide internal directories.