buildinfo

package
v0.0.1-0...-6deec57 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2022 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/bradishungry/go-api-learning/pkg/buildinfo.Version=$VERSION"
	Version string
	// GitCommit is baked by go build -ldflags "-X github.com/bradishungry/go-api-learning/pkg/buildinfo.GitCommit=$GIT_COMMIT"
	GitCommit string
	// BuildTime is baked by go build -ldflags "-X 'github.com/bradishungry/go-api-learning/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