version

package
v0.0.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is the application version, which should be set to a valid semver string at build time.
	Version = "unknown"
	// GitCommitHash is the git commit hash of the current build, which should be set at build time.
	GitCommitHash = "unknown"
	// BuildTime is the time when the application was built, which should be set at build time.
	BuildTime = "unknown"
)

Information about the current application build. These variables are set at build time using -ldflags "-X ...", and should not be changed in code.

Functions

func BuildUserAgent

func BuildUserAgent() string

BuildUserAgent builds a user agent string that includes the application version and build info.

Types

This section is empty.

Jump to

Keyboard shortcuts

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