tailcfg: add IsZero methods to UserID and NodeID

These will be helpful for doing some automated refactoring.

Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
pull/797/head
Josh Bleecher Snyder 4 years ago
parent e5894aba42
commit 2b8d2babfa

@ -27,10 +27,18 @@ type ID int64
type UserID ID type UserID ID
func (u UserID) IsZero() bool {
return u == 0
}
type LoginID ID type LoginID ID
type NodeID ID type NodeID ID
func (u NodeID) IsZero() bool {
return u == 0
}
type GroupID ID type GroupID ID
type RoleID ID type RoleID ID

Loading…
Cancel
Save