version

package
v0.0.17 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GitSource   string
	GitTag      string
	GitBranch   string
	GitHash     string
	GoBuildTime string
)

Functions

func JSON

func JSON(execName string) []byte

JSON returns a JSON-encoded metadata blob for the given executable name.

func Version

func Version() string

Version returns the best available version string. It prefers the git tag set via -ldflags, then the branch, then the short VCS revision from the embedded build info, and finally falls back to "dev".

Types

This section is empty.

Jump to

Keyboard shortcuts

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