version

package
v0.2.38 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2026 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package version holds build-time version information injected via ldflags.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the semantic version of the binary (e.g. "v0.0.28").
	Version = "dev"
	// GitCommit is the short git commit SHA.
	GitCommit = "unknown"
	// BuildDate is the RFC3339 build timestamp.
	BuildDate = "unknown"
)

These vars are set via -ldflags at build time. See Makefile LDFLAGS target.

Functions

func Get

func Get() string

Get returns the current binary version string.

Types

This section is empty.

Jump to

Keyboard shortcuts

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