Versions in this module Expand all Collapse all v1 v1.0.0 Nov 7, 2025 Changes in this version + const MaxLength + const MinLength + var ErrReasonInvalidFormat = errors.New("derrors: invalid reason format") + var ErrReasonInvalidLength = errors.New("derrors: invalid reason length") + func Normalize(s string) string + func Validate(r Reason) error + type Reason string + var Empty Reason = "" + func MustParse(s string) Reason + func Parse(s string) (Reason, error) + func (r *Reason) UnmarshalText(text []byte) error + func (r Reason) MarshalText() ([]byte, error) + func (r Reason) String() string