version

package
v0.0.0-...-fd35013 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2016 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package version holds some version data common to bosun and scollector. Most of these values will be inserted at build time with `-ldFlags` directives for official builds.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version number for official releases Updated manually before each release.
	Version = "0.5.0"

	// Set to any non-empty value by official release script
	OfficialBuild string
	// Date and time of build. Should be in YYYYMMDDHHMMSS format
	VersionDate string
	// VersionSHA should be set at build time as the most recent commit hash.
	VersionSHA string
)

These variables will be set at linking time for official builds. build.go will set date and sha, but `go get` will set none of these.

Functions

func GetVersionInfo

func GetVersionInfo(app string) string

Get a string representing the version information for the current binary.

func ShortVersion

func ShortVersion() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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