version

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2018 License: Apache-2.0 Imports: 2 Imported by: 44

Documentation

Overview

Package version provides project version information. Golang ldflags -X in Makefile is used for values substitution

Example:

fmt.Println(version.GetFullVersion())

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is release semantic version.
	Version = "unset"
	// BuildNumber is CI build number.
	BuildNumber = "unset"
	// BuildDate is build date.
	BuildDate = "unset"
	// BuildTime is build date.
	BuildTime = "unset"
	// CITool is a continuous integration tool(Travis, DockerCloud, etc.).
	CITool = "unset"
	// GitHash is short git commit hash.
	GitHash = "unset"
)

Functions

func GetFullVersion

func GetFullVersion() string

GetFullVersion returns multi line full version information

Types

This section is empty.

Jump to

Keyboard shortcuts

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