version

package
v0.264.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package version holds build information, injected at release time via -ldflags. Defaults are placeholders for `go run`/`go install` builds.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the semantic version (e.g. v1.2.3), set by goreleaser.
	Version = "dev"
	// Commit is the short git SHA the binary was built from.
	Commit = "none"
	// Date is the build timestamp (RFC3339).
	Date = "unknown"
)

Functions

func Resolved

func Resolved() string

Resolved returns the version string, preferring the ldflags-set value and falling back to the module version for `go install`/`go run` builds. Use it wherever the version is reported (banner, `--json`) so every surface agrees.

func String

func String() string

String returns a one-line, human-readable build description.

Types

This section is empty.

Jump to

Keyboard shortcuts

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