Skip to content

Commit

Permalink
Add IsZero
Browse files Browse the repository at this point in the history
  • Loading branch information
flowbehappy committed Aug 13, 2024
1 parent 85a68cd commit f2f2eef
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pkg/common/types.go
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ type GID struct {
high uint64
}

func (g GID) IsZero() bool {
return g.low == 0 && g.high == 0
}

func NewGID() GID {
uuid := uuid.New()
return GID{
Expand Down

0 comments on commit f2f2eef

Please sign in to comment.