buildinfo

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Version is baked by go build -ldflags "-X github.com/vardius/go-api-boilerplate/pkg/buildinfo.Version=$VERSION"
	Version string
	// GitCommit is baked by go build -ldflags "-X github.com/vardius/go-api-boilerplate/pkg/buildinfo.GitCommit=$GIT_COMMIT"
	GitCommit string
	// BuildTime is baked by go build -ldflags "-X 'github.com/vardius/go-api-boilerplate/pkg/buildinfo.BuildTime=$(date -u '+%Y-%m-%d %H:%M:%S')'"
	BuildTime string
)

Functions

func PrintVersionOrContinue

func PrintVersionOrContinue()

PrintVersionOrContinue will print git commit and exit with os.Exit(0) if CLI v flag is present

Types

This section is empty.

Jump to

Keyboard shortcuts

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