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

version

package
v0.16.0-rc1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// These variables are set via ldflags during build
	Version   = "dev"        // Semantic version (e.g., "0.1.0")
	GitCommit = unknownValue // Git commit hash (e.g., "a751d4c")
	BuildTime = unknownValue // Build timestamp (e.g., "20251015123705")
	GitDirty  = "false"      // Whether repo had uncommitted changes

	// CommitFromVCS is true when GitCommit came from the toolchain's VCS
	// stamp (debug.ReadBuildInfo) rather than release ldflags. Such builds
	// have no published per-commit images, so image pinning must keep
	// treating them as untagged dev builds (see internal/images).
	CommitFromVCS bool
)

Functions

func BuildInfo

func BuildInfo() string

BuildInfo returns detailed build information

func Full

func Full() string

func Short

func Short() string

Short returns just the semantic version

Types

This section is empty.

Jump to

Keyboard shortcuts

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