version

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const UnknownVersion = "(unknown version)"

UnknownVersion is used when the version is not known.

Variables

View Source
var (
	// Hash Git commit hash. Output of `git log -n 1 --pretty="%H"`
	Hash string

	// CompileTime YYYY-mm-ddTHH:MM:SS+ZZZZ
	CompileTime string

	// ReleaseVersion is set using -ldflags during build.
	ReleaseVersion string
)

Functions

func LongVersion

func LongVersion() string

LongVersion the long form of the binary version.

func Version

func Version() string

Version the binary version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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