version

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: Apache-2.0 Imports: 2 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 = "unknown" // Git commit hash (e.g., "a751d4c")
	BuildTime = "unknown" // Build timestamp (e.g., "20251015123705")
	GitDirty  = "false"   // Whether repo had uncommitted changes
)

Functions

func BuildInfo

func BuildInfo() string

BuildInfo returns detailed build information

func Full

func Full() string

Full returns the full version string including all metadata Format: version+commit.timestamp[-dirty]

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