version

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2026 License: Apache-2.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

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