MCPcopy
hub / github.com/google/uuid / IsInvalidLengthError

Function IsInvalidLengthError

uuid.go:82–84  ·  view source on GitHub ↗

IsInvalidLengthError is matcher function for custom error invalidLengthError

(err error)

Source from the content-addressed store, hash-verified

80
81// IsInvalidLengthError is matcher function for custom error invalidLengthError
82func IsInvalidLengthError(err error) bool {
83 return errors.Is(err, ErrInvalidLength)
84}
85
86// Parse decodes s into a UUID or returns an error if it cannot be parsed. Both
87// the standard UUID forms defined in RFC 9562

Callers 1

TestIsWrongLengthFunction · 0.85

Calls 1

IsMethod · 0.45

Tested by 1

TestIsWrongLengthFunction · 0.68