build

package
v0.0.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Version string
	Branch  string
	Commit  string
	Date    string
	User    string
	Host    string
)

These values are set at release build time via -ldflags; see the Makefile. For example:

-X github.com/goodblaster/vertigo/internal/build.Version=v1.2.3

Functions

This section is empty.

Types

type BuildInfo

type BuildInfo struct {
	Version string
	Branch  string
	Commit  string
	Date    string
	User    string
	Host    string
}

BuildInfo is a snapshot of the build-time variables.

func Info

func Info() BuildInfo

Info returns the build-time variables. Fields not set via -ldflags fall back to the Go toolchain's embedded build info, so a plain `go install` build still reports a version and commit.

Jump to

Keyboard shortcuts

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