version

package
v0.0.0-...-e25bc3e Latest Latest
Warning

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

Go to latest
Published: May 13, 2021 License: MIT Imports: 4 Imported by: 4

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.9.0-preview"

	// 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