1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
package gitpb // does this repo build a binary? func (r *Repo) IsBinary() bool { if r.GoInfo != nil { return r.GoInfo.GetGoBinary() } // todo: detect C & other language binary packages return false } // does this repo build a binary? func (r *Repo) IsGoPlugin() bool { if r.GoInfo != nil { return r.GoInfo.GetGoPlugin() } return false }