version

package
v0.6.9 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const APIVersion = 1

APIVersion is the daemon's HTTP API contract version. Bump it on any backwards-incompatible change to request/response shapes or routes (additive optional fields don't count). The client compares its compiled-in value to the daemon's reported value to detect skew instead of silently degrading.

Variables

View Source
var Version = "dev"

Version is the semver build version, set at build time via -ldflags. "dev" (or a git-describe string) for un-tagged local builds.

Functions

func Compare

func Compare(a, b string) int

Compare returns -1, 0, or +1 comparing two semver strings (a leading 'v' and any -prerelease/+build suffix are ignored). Non-semver inputs ("dev", hashes) sort below any real release and compare equal to each other — callers should treat an unknown-vs-unknown 0 as "can't tell".

func IsRelease

func IsRelease(v string) bool

IsRelease reports whether v looks like a real semver release (vX.Y.Z), as opposed to "dev" or a git-describe string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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