version

package
v1.0.6-1 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2020 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Release version of the service. Bump it up during new version release
	Release = "1.0.6"
	// Commit hash provided during build
	Commit = "Unknown"
	// BuildTime provided during build
	BuildTime = "Unknown"
	// GO provides golang version
	GO = runtime.Version()
	// Compiler info
	Compiler = runtime.Compiler
	// OS Info
	OS = runtime.GOOS
	// Arch info
	Arch = runtime.GOARCH
)

Functions

func LogInfo

func LogInfo()

LogInfo can be used to log version information during startup or termination etc...

Types

type Model

type Model struct {
	Release   string `xml:"release" json:"release"`
	Commit    string `xml:"commit" json:"commit"`
	BuildTime string `xml:"build_time" json:"build_time"`
	GO        string `xml:"golang" json:"golang"`
	Compiler  string `xml:"compiler" json:"compiler"`
	OS        string `xml:"os" json:"os"`
	Arch      string `xml:"architecture" json:"architecture"`
}

Model struct holds version information about the binary build

Jump to

Keyboard shortcuts

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