version

package
v4.1.14 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2025 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Overview

Package version is used by the release process to add an informative version string to some commands.

Index

Constants

This section is empty.

Variables

View Source
var (
	BuildTime = time.Time{}
	GitSHA    = ""
	SemVer    = ""
)

These strings will be overwritten by an init function in created by make_version.go during the release process.

Functions

func Short

func Short() string

Short returns a shortened GitSHA string that is equivalent to git rev-parse --short. If SemVer has been provided, it will be prepended

func Version

func Version() string

Version returns a newline-terminated string describing the current version of the build.

Types

This section is empty.

Jump to

Keyboard shortcuts

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