github.com/comcast/canticle@v0.0.0-20161108184242-c53cface56e8/buildinfo/buildinfo.go (about) 1 2 // Package buildinfo is GENERATED CODE from the Canticle build tool, 3 // you may check this file in so build can happen without 4 // genversion. DO NOT CHECK IN info.go in this package. 5 package buildinfo 6 7 import "encoding/json" 8 9 // BuildInfo contains the deps of this as well as information about 10 // when genversion was called. 11 type BuildInfo struct { 12 BuildTime string 13 BuildUser string 14 BuildHost string 15 Revision string 16 CanticleDeps *json.RawMessage 17 } 18 19 var buildInfo = &BuildInfo{} 20 21 // GetBuildInfo returns the information saved by cant genversion. 22 func GetBuildInfo() *BuildInfo { 23 return buildInfo 24 }