Documentation
¶
Overview ¶
Package version exposes the stella binary version.
The Version variable is set via -ldflags="-X github.com/CherryHQ/stella/internal/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 ¶ added in v0.43.0
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 set Version to a semver like "0.1.0" or "v0.1.0"; dev builds produce values like "dev" or "v0.1.0-5-gabcdef-dirty".
func NormalizeVersion ¶ added in v0.43.0
NormalizeVersion strips a leading "v" prefix and validates the version string.
Types ¶
This section is empty.