19 lines
350 B
Go
19 lines
350 B
Go
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
|
|
}
|