version

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// BuildTag set at build time, empty if not a tagged version
	BuildTag string
	// BuildTime set at build time
	BuildTime string
	// BuildSHA set at build time
	BuildSHA string
)
View Source
var LogoFiglet = ` _
| |
| |    _   _ _ __ __ _
| |   | | | | '__/ _` + "`" + ` |
| |___| |_| | | | (_| |
\_____/\__, |_|  \__,_|
        __/ |
       |___/

`

LogoFiglet is an ASCII art logo

Functions

This section is empty.

Types

type Version

type Version struct {
	BuildTag  string
	BuildTime string
	BuildSHA  string
}

Version set at buildtime

func Get

func Get() Version

Get the structured version

func (Version) String

func (v Version) String() string

String returns a simplified version string consisting of <Git SHA>-<Git Tag>

Jump to

Keyboard shortcuts

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