Index | Files

package version

import ""

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.


Package Files



var (
    // Version number for official releases Updated manually before each release.
    Version = "0.8.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.

func GetVersionInfo Uses

func GetVersionInfo(app string) string

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

func ShortVersion Uses

func ShortVersion() string

Package version imports 4 packages (graph) and is imported by 7 packages. Updated 2020-01-23. Refresh now. Tools for package owners.