version

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2018 License: Apache-2.0 Imports: 1 Imported by: 2

Documentation

Index

Examples

Constants

This section is empty.

Variables

View Source
var (
	Version   = ""
	GitHash   = ""
	BuildTime = ""
)

These variables should be substituted with real values during build

Functions

func Print

func Print(l *zap.SugaredLogger)

Print prints version information to stdout

Example
Version = "1"
GitHash = "abc123"
BuildTime = "Some point in time"

Print(zap.NewExample().Sugar())
Output:

{"level":"info","msg":"version info","version":"1","gitCommitHash":"abc123","buildTime":"Some point in time"}

Types

This section is empty.

Jump to

Keyboard shortcuts

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