buildinfo

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package buildinfo is used to include build time information into a compiled app.

Please see github.com/andrejacobs/go-aj/examples/buildinfo/Makefile on how to use GO_LDFLAGS to set the information at compile time.

Index

Constants

This section is empty.

Variables

View Source
var (
	AppName       string // The name of the app (binary executable)
	GitCommitHash string // The hash of the last commit in the git repository
	Version       string // The version of the app
)

Functions

func UsageName

func UsageName() string

Return the name of the app.

func UsageNameAndVersion

func UsageNameAndVersion() string

Return the name of the app and version info as displayed in the usage information.

func VersionString

func VersionString() string

Return the version information that can be shown to a user.

Types

This section is empty.

Jump to

Keyboard shortcuts

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