logtail: add PrivateID.IsZero method

reviewable/pr331/r1
Brad Fitzpatrick 4 years ago
parent 9497921f52
commit 5d67365cc9

@ -55,6 +55,9 @@ func ParsePrivateID(s string) (PrivateID, error) {
return p, nil
}
// IsZero reports whether id is the zero value.
func (id PrivateID) IsZero() bool { return id == PrivateID{} }
func (id *PrivateID) UnmarshalText(s []byte) error {
b, err := hex.DecodeString(string(s))
if err != nil {

Loading…
Cancel
Save