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 ¶
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.
Click to show internal directories.
Click to hide internal directories.