Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Version = "dev" GitCommit = "unknown" BuildTime = "unknown" GoVersion = runtime.Version() )
These variables are set during build time using ldflags
Functions ¶
func GetVersionFromGitTag ¶
func GetVersionFromGitTag() string
GetVersionFromGitTag extracts version from git tag
func IsRelease ¶
func IsRelease() bool
IsRelease returns true if this is a release version (not dev)
func StringWithJSON ¶ added in v0.9.21
StringWithJSON returns a formatted version string or JSON
Types ¶
Click to show internal directories.
Click to hide internal directories.