version

package
v0.68.2 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2026 License: AGPL-3.0 Imports: 2 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

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

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

func IsDevVersion(v string) bool

IsDevVersion reports whether v identifies a dev build rather than a tagged stable or prerelease version.

func IsPrereleaseVersion

func IsPrereleaseVersion(v string) bool

IsPrereleaseVersion reports whether v is a tagged semantic-version prerelease.

func NormalizeVersion

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