BinaryName returns the primary binary name this package provides.
()
| 104 | |
| 105 | // BinaryName returns the primary binary name this package provides. |
| 106 | func (p *Package) BinaryName() string { |
| 107 | if len(p.Files) > 0 { |
| 108 | return p.Files[0].Name |
| 109 | } |
| 110 | return p.RepoName |
| 111 | } |
| 112 | |
| 113 | // PackageFile describes a file within a downloaded archive. |
| 114 | type PackageFile struct { |
no outgoing calls