Documentation
¶
Overview ¶
Package version exposes the stella binary version.
The Version variable is set via -ldflags="-X github.com/CherryHQ/stella/internal/platform/version.Version=..." during release builds. At dev-build time it defaults to "dev".
Index ¶
Constants ¶
This section is empty.
Variables ¶
var BuildDate = ""
BuildDate is the build timestamp. Set via ldflags.
var Commit = ""
Commit is the git commit for this build. Set via ldflags.
var Version = "dev"
Version is the stella build version. Set via ldflags.
Functions ¶
func DisplayVersion ¶
func DisplayVersion() string
DisplayVersion returns the normalized build version, or "dev" for non-release builds.
func IsDev ¶
func IsDev() bool
IsDev reports whether the current build is a dev build (not a tagged release). Tagged releases include prereleases such as "0.1.0-rc.1"; dev builds produce values such as "dev", a bare commit, or git-describe output.
func IsDevVersion ¶
IsDevVersion reports whether v identifies a dev build rather than a tagged stable or prerelease version.
func IsPrereleaseVersion ¶
IsPrereleaseVersion reports whether v is a tagged semantic-version prerelease.
func NormalizeVersion ¶
NormalizeVersion strips a leading "v" prefix and validates the version string.
Types ¶
This section is empty.