revision

package
v0.37.0 Latest Latest
Warning

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

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

Documentation

Overview

Package revision defines variables that will be populated with values from the Makefile at build time via LDFLAGS.

Index

Constants

View Source
const None = "v0.0.0-unknown"

None is the AppVersion string for local (unversioned) builds.

Variables

View Source
var (
	// AppVersion is the semver for this version of the client, or
	// "v0.0.0-unknown". Set by `make release`.
	AppVersion string

	// GitCommit is the short git SHA associated with this build, or
	// "unknown". Set by `make release`.
	GitCommit string

	// GoVersion is the output of `go version` associated with this build, or
	// "go version unknown". Set by `make release`.
	GoVersion string
)

Functions

func SemVer added in v0.27.1

func SemVer(av string) string

SemVer accepts the application revision version, which is prefixed with a `v` and also has a commit hash following the semantic version, and returns just the semantic version.

e.g. v1.0.0-xyz --> 1.0.0

Types

This section is empty.

Jump to

Keyboard shortcuts

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