We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f59d60 commit 94acb6eCopy full SHA for 94acb6e
1 file changed
ioctl_h.go
@@ -25,8 +25,9 @@ var zeroUUID UUID
25
26
type UUID [UUIDSize]byte
27
28
+func (id UUID) IsZero() bool { return id == zeroUUID }
29
func (id UUID) String() string {
- if id == zeroUUID {
30
+ if id.IsZero() {
31
return "<zero>"
32
}
33
buf := make([]byte, UUIDSize*2+4)
0 commit comments