buildinfo

package
v0.3.0-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func String

func String() string

String returns a string representation of the build info

Types

type Spec

type Spec struct {
	// GitDescribe is the git describe for this build
	// It should be a clean git tag for a real release
	GitDescribe string `json:"git_describe"`
	// GitCommit is the git commit for this build
	GitCommit string `json:"git_commit"`
	// Timestamp is the Unix (epoch) time when the build occurred
	Timestamp time.Time `json:"timestamp"`
}

Spec represents the build info for the running binary

func Get

func Get() Spec

Get returns a copy of the build info

Jump to

Keyboard shortcuts

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