IsGoPackage returns true if this package is installed via "go install".
()
| 94 | |
| 95 | // IsGoPackage returns true if this package is installed via "go install". |
| 96 | func (p *Package) IsGoPackage() bool { |
| 97 | switch p.Type { |
| 98 | case "go_install", "go", "go_build": |
| 99 | return true |
| 100 | default: |
| 101 | return false |
| 102 | } |
| 103 | } |
| 104 | |
| 105 | // BinaryName returns the primary binary name this package provides. |
| 106 | func (p *Package) BinaryName() string { |
no outgoing calls