Help us shape the future of Go! Take the 2026 Go Developer Survey

version

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package version exposes build metadata shared by the server and CLI.

Index

Constants

This section is empty.

Variables

View Source
var BuildDate = "unknown"

BuildDate is the UTC build timestamp set by the release build's linker flags.

View Source
var Commit = "unknown"

Commit is the source revision set by the release build's linker flags.

View Source
var Version = "dev"

Version is set by the release build's linker flags.

Functions

func BuildIdentity added in v0.4.0

func BuildIdentity() string

BuildIdentity identifies the running executable without hashing a deployment archive. It deliberately preserves the deployment artifact's Go build-note / stat fallback.

func CommitLabel

func CommitLabel() string

CommitLabel distinguishes absent provenance from a deployed source revision.

func String

func String() string

String returns a human-readable version with source and build provenance.

func VersionLabel

func VersionLabel() string

VersionLabel makes an unversioned source build explicit to API/UI consumers.

Types

This section is empty.

Jump to

Keyboard shortcuts

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