Versions in this module Expand all Collapse all v0 v0.0.2 Apr 10, 2025 Changes in this version + var EmailErr EmailError + var LengthErr LengthError + var RequiredErr RequiredError + var RuleErr RuleError + var TimeErr TimeError + var ValidateErr ValidateError + type EmailError struct + func (*EmailError) New(msg string) myError.IMyError + func (*EmailError) Panic() myError.IMyError + func (*EmailError) Wrap(err error) myError.IMyError + func (my *EmailError) Error() string + func (my *EmailError) Is(target error) bool + type LengthError struct + func (*LengthError) New(msg string) myError.IMyError + func (*LengthError) Panic() myError.IMyError + func (*LengthError) Wrap(err error) myError.IMyError + func (my *LengthError) Error() string + func (my *LengthError) Is(target error) bool + func (my *LengthError) NewFormat(format string, msgs ...any) myError.IMyError + type RequiredError struct + func (*RequiredError) New(msg string) myError.IMyError + func (*RequiredError) Panic() myError.IMyError + func (*RequiredError) Wrap(err error) myError.IMyError + func (my *RequiredError) Error() string + func (my *RequiredError) Is(target error) bool + type RuleError struct + func (*RuleError) New(msg string) myError.IMyError + func (*RuleError) Panic() myError.IMyError + func (*RuleError) Wrap(err error) myError.IMyError + func (my *RuleError) Error() string + func (my *RuleError) Is(target error) bool + func (my *RuleError) NewFormat(format string, msgs ...any) myError.IMyError + type TimeError struct + func (*TimeError) New(msg string) myError.IMyError + func (*TimeError) Panic() myError.IMyError + func (*TimeError) Wrap(err error) myError.IMyError + func (my *TimeError) Error() string + func (my *TimeError) Is(target error) bool + func (my *TimeError) NewFormat(format string, msgs ...any) myError.IMyError + type ValidateError struct + func (*ValidateError) New(msg string) myError.IMyError + func (*ValidateError) Panic() myError.IMyError + func (*ValidateError) Wrap(err error) myError.IMyError + func (my *ValidateError) Error() string + func (my *ValidateError) Is(target error) bool + type Validator struct + func NewValidator[T any](data T, prefixNames ...string) *Validator[T] + func New[T any](data T, prefixNames ...string) *Validator[T] + func (my *Validator[T]) DateFormat(dateFormat string) *Validator[T] + func (my *Validator[T]) DatetimeFormat(datetimeFormat string) *Validator[T] + func (my *Validator[T]) EmailFormat(emailFormat string) *Validator[T] + func (my *Validator[T]) TimeFormat(timeFormat string) *Validator[T] + func (my *Validator[T]) Validate(exChecks ...func(item T) error) error