version

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package version provides build time version information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInfo

type BuildInfo struct {
	Version     string    `json:"version"`
	GitRevision string    `json:"revision"`
	Branch      string    `json:"branch"`
	BuildUser   string    `json:"user"`
	BuildDate   time.Time `json:"date"`
	GoVersion   string    `json:"go"`
}

BuildInfo provides build information and metadata. It is Populated by Makefile at build-time using -ldflags -X. Symbol names are reported by 'go tool nm <binary object>". Note that unless the cluster of instances is completely homogeneous, different instances can return different values.

var Build BuildInfo

Build variable exposes the build-time information

Jump to

Keyboard shortcuts

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