buildinfo

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the semantic version of the CLI.
	Version = "dev"
	// Commit is the VCS revision used for the build.
	Commit = "unknown"
	// Date is the build timestamp in UTC (RFC3339 format).
	Date = "unknown"
)

Functions

func Long

func Long() string

Long returns full build details.

func Short

func Short() string

Short returns a concise version string suitable for --version output.

Types

type Details

type Details struct {
	Version string `json:"version"`
	Commit  string `json:"commit"`
	Date    string `json:"date"`
	Dirty   bool   `json:"dirty"`
}

Details describes the current CLI build metadata.

func Current

func Current() Details

Current returns the current build metadata as a structured value.

Jump to

Keyboard shortcuts

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