version - ActiveState ActiveGo 1.8

Package version

import ""

Overview ▾


Build information. Populated at build-time.

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

func BuildContext

func BuildContext() string

BuildContext returns goVersion, buildUser and buildDate information.

func Info

func Info() string

Info returns version, branch and revision information.

func NewCollector

func NewCollector(program string) *prometheus.GaugeVec

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

func Print

func Print(program string) string

Print returns version information.