From 070dfa0c3d9e33e03f25703c2a939932efd7dd80 Mon Sep 17 00:00:00 2001 From: Josh Bleecher Snyder Date: Wed, 30 Sep 2020 17:47:07 -0700 Subject: [PATCH] tailcfg: add more IsZero methods Signed-off-by: Josh Bleecher Snyder --- tailcfg/tailcfg.go | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tailcfg/tailcfg.go b/tailcfg/tailcfg.go index 87d186d92..e90e63c4c 100644 --- a/tailcfg/tailcfg.go +++ b/tailcfg/tailcfg.go @@ -41,8 +41,16 @@ func (u NodeID) IsZero() bool { type GroupID ID +func (u GroupID) IsZero() bool { + return u == 0 +} + type RoleID ID +func (u RoleID) IsZero() bool { + return u == 0 +} + type CapabilityID ID // MachineKey is the curve25519 public key for a machine.