version

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2018 License: BSD-2-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const ENV_LOCATION = "LOCATION"
View Source
const Program = "dummyapp"

Variables

View Source
var BuildTime string
View Source
var VersionString = "0.0.2-barebuild"

VersionString is overridden at link-time, if using the Makefile. If you see x.y.z output from the version command then that should mean 'x.y.z'; if you see 'x.y.z-barebuild' then it's a hint that the version number is merely whatever was in source, not authoritatively stamped in later; this could thus be a build from any of a range of commits.

Functions

func CurrentVersion

func CurrentVersion() string

Pull the version derivation from whatever variables go into the makeup out into a function so that we can log it at startup.

func Version

func Version(w io.Writer)

Types

type LogPair added in v0.0.3

type LogPair struct {
	Key, Value string
}

func LogPairs added in v0.0.3

func LogPairs() []LogPair

Jump to

Keyboard shortcuts

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