build

package
v0.4.15 Latest Latest
Warning

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

Go to latest
Published: Apr 21, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package build exposes the binary's identity and version metadata.

Values injected via -ldflags (at release or Makefile build time) take precedence. When a value is not injected (e.g. `go install`, `go build`, or a ko image build without ldflags), the accessors fall back to runtime/debug.ReadBuildInfo so `yeet version` still reports meaningful module and VCS information.

Index

Constants

View Source
const (
	ServiceName = "yeet"
)

Variables

This section is empty.

Functions

func Commit

func Commit() string

func Date

func Date() string

func Module added in v0.4.15

func Module() string

Module returns the module checksum (e.g. "h1:abc...") embedded by `go install` builds. Empty for `go build` / release / ko builds where the binary is not sourced from a module tarball. Callers decide whether to display it.

func Version

func Version() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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