version

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2026 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Commit string //nolint:gochecknoglobals

Commit is the short git commit SHA. It may be set via -ldflags by goreleaser. Defaults to empty for local builds.

View Source
var Date string //nolint:gochecknoglobals

Date is the build date (RFC3339) typically set by goreleaser via -ldflags. Defaults to empty for local builds.

View Source
var Version string //nolint:gochecknoglobals

Version is the application version string, typically set via -ldflags by goreleaser to the tag value (e.g., v1.2.3). It defaults to empty for local builds.

Functions

func String

func String() string

String returns a human-friendly version string for the CLI. Priority:

  1. Version (if provided via ldflags, e.g., a tag like v1.2.3)
  2. Commit (if provided via ldflags), + "dev-" prefix
  3. Short SHA from Go build info (vcs.revision), if present, + "dev-" prefix
  4. "dev"

Types

This section is empty.

Jump to

Keyboard shortcuts

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