GetState returns the State field if it's non-nil, zero value otherwise.
()
| 1008 | |
| 1009 | // GetState returns the State field if it's non-nil, zero value otherwise. |
| 1010 | func (a *Alert) GetState() string { |
| 1011 | if a == nil || a.State == nil { |
| 1012 | return "" |
| 1013 | } |
| 1014 | return *a.State |
| 1015 | } |
| 1016 | |
| 1017 | // GetTool returns the Tool field. |
| 1018 | func (a *Alert) GetTool() *Tool { |
no outgoing calls