diff --git a/id.go b/id.go index 9426dcb..f8891f1 100644 --- a/id.go +++ b/id.go @@ -340,6 +340,11 @@ func (id ID) IsNil() bool { return id == nilID } +// Alias of IsNil +func (id ID) IsZero() bool { + return id.IsNil() +} + // NilID returns a zero value for `xid.ID`. func NilID() ID { return nilID