version

package
v0.4.3-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2020 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Branch of the code
	Branch = "{branch}"
	// Revision of the code
	Revision = "{revision}"
	// Dirty flag shows if the binary is built from a
	// repo with uncommitted changes
	Dirty = "{dirty}"
)

Functions

func Parse

func Parse(v string) (version string, revision string, err error)

Parse version string

func ShowAndExit

func ShowAndExit(short bool)

ShowAndExit prints the version and exits

Types

type Version

type Version interface {
	Short() string
	String() string
}

Version interface

func Current

func Current() Version

Current get current version

Jump to

Keyboard shortcuts

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