version

package
v0.60.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 19, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0

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

View Source
var BuildDate = ""

BuildDate is the build timestamp. Set via ldflags.

View Source
var Commit = ""

Commit is the git commit for this build. Set via ldflags.

View Source
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

func NormalizeVersion(v string) string

NormalizeVersion strips a leading "v" prefix and validates the version string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL