Documentation
¶
Overview ¶
Package buildinfo reports which build of a hive program is running.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Info ¶
Info is a binary's release identity.
func Resolve ¶
Resolve returns the identity a program's -ldflags stamped. A binary built without them (`go install module@version`, `go build`, `go run`) still has version "dev"; Resolve then reads the module version and VCS metadata the Go toolchain records, keeping each stamped value the toolchain has no substitute for.
Click to show internal directories.
Click to hide internal directories.