Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type VersionInfo ¶
type VersionInfo struct { // Version is the current semver. Version string `yaml:"version,omitempty"` // GitCommit is the git sha1. GitCommit string `yaml:"gitCommit,omitempty"` // GitTreeState is the state of the git tree. GitTreeState string `yaml:"gitTreeState,omitempty"` // GoVersion is the version of the Go compiler used. GoVersion string `yaml:"goVersion,omitempty"` }
VersionInfo describes the compile time information.
func (*VersionInfo) IsSameVersion ¶
func (v *VersionInfo) IsSameVersion() bool
IsSameVersion checks if two versions are same and logs a message if the version is newer or older
Click to show internal directories.
Click to hide internal directories.