common: Index | Files

package version

import ""


Package Files



var (
    Version   string
    Revision  string
    Branch    string
    BuildUser string
    BuildDate string
    GoVersion = runtime.Version()

Build information. Populated at build-time.

func BuildContext Uses

func BuildContext() string

BuildContext returns goVersion, buildUser and buildDate information.

func Info Uses

func Info() string

Info returns version, branch and revision information.

func NewCollector Uses

func NewCollector(program string) prometheus.Collector

NewCollector returns a collector that exports metrics about current version information.

func Print Uses

func Print(program string) string

Print returns version information.

Package version imports 6 packages (graph) and is imported by 476 packages. Updated 2020-09-23. Refresh now. Tools for package owners.