Extra returns Stanza of extra fields (it may load it from collection)
()
| 498 | |
| 499 | // Extra returns Stanza of extra fields (it may load it from collection) |
| 500 | func (p *Package) Extra() Stanza { |
| 501 | if p.extra == nil { |
| 502 | if p.collection == nil { |
| 503 | panic("extra == nil && collection == nil") |
| 504 | } |
| 505 | p.extra = p.collection.loadExtra(p) |
| 506 | } |
| 507 | |
| 508 | return *p.extra |
| 509 | } |
| 510 | |
| 511 | // Deps returns parsed package dependencies (it may load it from collection) |
| 512 | func (p *Package) Deps() *PackageDependencies { |