buildinfo

package
v1.131.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package buildinfo holds the identity of the running binary: the version, commit and build date the release build stamps in through ldflags. It is the one place those values live, so the --version flag, the admin system route and the User-Agent an outbound request presents all report the same build.

It sits below every other package (it imports nothing first-party) because the outbound transport seam, internal/upstreamauth, needs the version and cannot import the server package that used to hold it.

Index

Constants

This section is empty.

Variables

View Source
var Commit = "none"

Commit is the git short commit hash, set at build time via ldflags.

View Source
var Date = "unknown"

Date is the build timestamp, set at build time via ldflags.

View Source
var Version = "dev"

Version is the release version, set at build time via ldflags. A build without one, such as `go run`, reports "dev".

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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