version

package
v2.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2026 License: MIT Imports: 4 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 carries the single source of truth for the release string.

Index

Constants

This section is empty.

Variables

View Source
var Version = "2.8.1"

Version is stamped into the API's /api/health payload and the UI footer. A release build overrides it from the tag (-X …/internal/version.Version); this value is what a plain `go build` reports.

Functions

func Older added in v2.6.0

func Older(a, b Info) (older, known bool)

Older reports whether build a is older than build b. known is false when the two cannot be ordered — equal versions with no commit times to tell the builds apart, or a version string that is not major.minor.patch.

Types

type Info

type Info struct {
	Version    string `json:"version"`
	Revision   string `json:"revision"`
	Modified   *bool  `json:"modified"`
	CommitTime string `json:"commit_time,omitempty"`
}

Info identifies the running executable, independently of its release label. A nil Modified value means VCS metadata was not recorded, not a clean build.

func Current

func Current() Info

Jump to

Keyboard shortcuts

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