version

package
v0.3.113 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 3 Imported by: 1 module, 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.

README

version

loomuxd's own release version (design spec §10 axis 4) — a single var Version = "dev", overridable at build time:

go build -ldflags "-X github.com/Loomux/server/version.Version=1.2.3" ./cmd/loomuxd

Deliberately independent of api.APIVersion (axis 1, the v1 in /api/v1/...): a server patch release doesn't force an API version bump, only a breaking API change does. loomuxd -version prints it; the HTTP API also exposes it (unauthenticated) via GET /api/v1/version alongside api.APIVersion, so clients can check compatibility before logging in.

Documentation

Overview

Package version holds loomuxd's own release version (design spec §10 axis 4) — independent of the API version (axis 1, /api/v1/...): a server patch release doesn't force an API version bump, only a breaking API change does.

Index

Constants

This section is empty.

Variables

View Source
var Version = "dev"

Version is loomuxd's semver release version. Overridable at build time via

go build -ldflags "-X github.com/Loomux/server/version.Version=1.2.3"

"dev" when built without that flag (e.g. a local `go build`/`go run`). CI stamps "<release> (web <web version>)" or, unreleased, "<short sha> (web ...)"; Parse reads the leading token.

Functions

This section is empty.

Types

type Semver added in v0.3.78

type Semver struct {
	Major, Minor, Patch int
	// Pre is the pre-release part after the hyphen ("rc.1"), "" for a
	// release.
	Pre string
}

Semver is a parsed X.Y.Z[-pre] version (SemVer 2.0.0, no build metadata), as the release line and plugin manifests use it (LOOM-194).

func Parse added in v0.3.78

func Parse(s string) (Semver, bool)

Parse reads the version a version string starts with: "0.3.74 (web 0.3.12)" is 0.3.74. "dev", a commit, or anything that isn't X.Y.Z is not a version (ok false): a host built without a release.

func (Semver) Compare added in v0.3.78

func (v Semver) Compare(o Semver) int

Compare orders versions: -1, 0 or 1 as v is before, the same as or after o. A pre-release comes before its release; two pre-releases compare as strings.

func (Semver) Satisfies added in v0.3.78

func (v Semver) Satisfies(min Semver) bool

Satisfies reports whether v meets a minimum the way a caret range does: at or above min, in the same major line, and under 0.x in the same minor line (0.Y is the major there). A plugin's min_host_version 0.3.0 is met by 0.3.80, not by 0.4.0.

func (Semver) String added in v0.3.78

func (v Semver) String() string

String is X.Y.Z or X.Y.Z-pre.

Jump to

Keyboard shortcuts

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