mirror of
https://github.com/tailscale/tailscale.git
synced 2025-02-16 18:08:40 +00:00
tailcfg: add yet another IsZero method
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
This commit is contained in:
parent
070dfa0c3d
commit
ce6aca13f0
@ -33,6 +33,10 @@ func (u UserID) IsZero() bool {
|
|||||||
|
|
||||||
type LoginID ID
|
type LoginID ID
|
||||||
|
|
||||||
|
func (u LoginID) IsZero() bool {
|
||||||
|
return u == 0
|
||||||
|
}
|
||||||
|
|
||||||
type NodeID ID
|
type NodeID ID
|
||||||
|
|
||||||
func (u NodeID) IsZero() bool {
|
func (u NodeID) IsZero() bool {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user