version

package
v0.2.0-beta.16 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package version holds the control plane's own build version, injected via -ldflags at release build time (see .github/workflows/release.yml).

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is the running build's version string, e.g. "v1.2.3" for a tagged release. Defaults to "dev" for local and CI builds that don't pass -ldflags; a binary installed with `go install module@vX.Y.Z` takes its version from the embedded module info instead.

Functions

func Compare

func Compare(a, b string) (cmp int, ok bool)

Compare orders two release versions such as "v1.2.3" or "0.4.0-beta.2" by semver precedence: -1 if a < b, 0 if equal, 1 if a > b. ok is false when either is not a release version (for example "dev").

Types

This section is empty.

Jump to

Keyboard shortcuts

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