Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var BuildType = buildDev
BuildType should be one of (dev, release).
View Source
var GitHash = "<NOT PROPERLY GENERATED>"
GitHash variable will be replaced at link time after `make` has been run.
View Source
var InfoVar = Info([][2]string{ {"Version", Version}, {"GitHash", GitHash}, {"BuildType", BuildType}, {"Goversion", runtime.Version()}, {"OS", runtime.GOOS}, {"Architecture", runtime.GOARCH}, })
InfoVar is a singleton instance of the Info struct.
View Source
var Version = "latest"
Version variable will be replaced at link time after `make` has been run.
Functions ¶
func IsDevBuild ¶
func IsDevBuild() bool
IsDevBuild returns true if this is a development (local) build.
func IsReleaseBuild ¶
func IsReleaseBuild() bool
IsReleaseBuild returns true if this is a release build.
Types ¶
Click to show internal directories.
Click to hide internal directories.