// Package buildinfo exposes the provenance injected into Orchestra binaries. // Build systems should set Revision, Time, and Dirty with -ldflags. Keeping // the defaults explicit makes development binaries honest rather than // pretending to be a deployable revision. package buildinfo var ( Revision = "devel" Time = "unknown" Dirty = "unknown" ) type Info struct { Revision string `json:"revision"` Time string `json:"time"` Dirty string `json:"dirty"` } func Current() Info { return Info{Revision: Revision, Time: Time, Dirty: Dirty} }