version

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	VersionTag = defaultContent
	Branch     = defaultContent
	BuildDate  = defaultContent
)

Version provided by compile time -ldflags.

Functions

func PrintText

func PrintText()

PrintText prints the version informations to stdout

Types

type Version

type Version struct {
	Version, Branch, GoVersion, Platform string
	BuildDate                            time.Time
}

Version holds information about the build

func Get

func Get() Version

Get returns the version information

Jump to

Keyboard shortcuts

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