GetID returns the ID field if it's non-nil, zero value otherwise.
()
| 1496 | |
| 1497 | // GetID returns the ID field if it's non-nil, zero value otherwise. |
| 1498 | func (a *App) GetID() int64 { |
| 1499 | if a == nil || a.ID == nil { |
| 1500 | return 0 |
| 1501 | } |
| 1502 | return *a.ID |
| 1503 | } |
| 1504 | |
| 1505 | // GetInstallationsCount returns the InstallationsCount field if it's non-nil, zero value otherwise. |
| 1506 | func (a *App) GetInstallationsCount() int { |
no outgoing calls