GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise.
()
| 25096 | |
| 25097 | // GetDownloadURL returns the DownloadURL field if it's non-nil, zero value otherwise. |
| 25098 | func (p *PackageFile) GetDownloadURL() string { |
| 25099 | if p == nil || p.DownloadURL == nil { |
| 25100 | return "" |
| 25101 | } |
| 25102 | return *p.DownloadURL |
| 25103 | } |
| 25104 | |
| 25105 | // GetID returns the ID field if it's non-nil, zero value otherwise. |
| 25106 | func (p *PackageFile) GetID() int64 { |
no outgoing calls