IsZero reports whether the ID has both components empty.
()
| 65 | |
| 66 | // IsZero reports whether the ID has both components empty. |
| 67 | func (id ID) IsZero() bool { |
| 68 | return id.Provider == "" && id.Model == "" |
| 69 | } |
| 70 | |
| 71 | // IsValid reports whether both components of the ID are populated. |
| 72 | func (id ID) IsValid() bool { |
no outgoing calls