IsZero checks if Uid is uninitialized.
()
| 71 | |
| 72 | // IsZero checks if Uid is uninitialized. |
| 73 | func (uid Uid) IsZero() bool { |
| 74 | return uid == ZeroUid |
| 75 | } |
| 76 | |
| 77 | // Compare returns 0 if uid is equal to u2, 1 if u2 is greater than uid, -1 if u2 is smaller. |
| 78 | func (uid Uid) Compare(u2 Uid) int { |
no outgoing calls