github.com/Benchkram/bob@v0.0.0-20220321080157-7c8f3876e225/bobtask/buildinfo/buildinfo.go (about) 1 package buildinfo 2 3 import ( 4 "github.com/Benchkram/bob/bobtask/hash" 5 ) 6 7 // Targets maps in(put) hashes to target hashes 8 type Targets map[hash.In]string 9 10 // Creator information 11 type Creator struct{ Taskname string } 12 13 type I struct { 14 // Info holds data about the creator of this object. 15 Info Creator 16 17 // Targets hold hash values on all related 18 // targets in the build chain. 19 Targets Targets 20 } 21 22 func New() *I { 23 return &I{ 24 Targets: make(Targets), 25 } 26 } 27 func Make() I { 28 return I{ 29 Targets: make(Targets), 30 } 31 }