buildinfo

package
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package buildinfo reads what the Go toolchain stamps into the binary when it is built from a git checkout.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AgeDays

func AgeDays(now time.Time) (days int, ok bool)

AgeDays returns how many whole days before now the source of the running binary was committed. Release builds are cut from the tagged commit, so for them this is the age of the release.

ok is false when the binary carries no commit time: go run, go install from the module proxy, or a build with -buildvcs=false.

Types

This section is empty.

Jump to

Keyboard shortcuts

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