Documentation
¶
Index ¶
- func Dereference[T any](validateFuncs ...yav.ValidateFunc[T]) yav.ValidateFunc[*T]
- func ExcludedIf[T any](conditionString string, condition bool) yav.ValidateFunc[*T]
- func ExcludedUnless[T any](conditionString string, condition bool) yav.ValidateFunc[*T]
- func ExcludedWithAll[T any]() accumulators.ExcludedWithAll[*T]
- func ExcludedWithAny[T any]() accumulators.ExcludedWithAny[*T]
- func ExcludedWithoutAll[T any]() accumulators.ExcludedWithoutAll[*T]
- func ExcludedWithoutAny[T any]() accumulators.ExcludedWithoutAny[*T]
- func OmitEmpty[T any](_ string, value *T) (stop bool, err error)
- func Required[T any](name string, value *T) (stop bool, err error)
- func RequiredIf[T any](conditionString string, condition bool) yav.ValidateFunc[*T]
- func RequiredUnless[T any](conditionString string, condition bool) yav.ValidateFunc[*T]
- func RequiredWithAll[T any]() accumulators.RequiredWithAll[*T]
- func RequiredWithAny[T any]() accumulators.RequiredWithAny[*T]
- func RequiredWithoutAll[T any]() accumulators.RequiredWithoutAll[*T]
- func RequiredWithoutAny[T any]() accumulators.RequiredWithoutAny[*T]
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Dereference ¶
func Dereference[T any](validateFuncs ...yav.ValidateFunc[T]) yav.ValidateFunc[*T]
Dereference applies the given validation funcs to the value a pointer points to. It requires non-nil pointer, otherwise fails with yav.CheckNameRequired. If pointer is optional, you may precede Dereference with OmitEmpty.
func ExcludedIf ¶ added in v0.14.0
func ExcludedIf[T any](conditionString string, condition bool) yav.ValidateFunc[*T]
func ExcludedUnless ¶ added in v0.14.0
func ExcludedUnless[T any](conditionString string, condition bool) yav.ValidateFunc[*T]
func ExcludedWithAll ¶ added in v0.14.0
func ExcludedWithAll[T any]() accumulators.ExcludedWithAll[*T]
func ExcludedWithAny ¶ added in v0.14.0
func ExcludedWithAny[T any]() accumulators.ExcludedWithAny[*T]
func ExcludedWithoutAll ¶ added in v0.14.0
func ExcludedWithoutAll[T any]() accumulators.ExcludedWithoutAll[*T]
func ExcludedWithoutAny ¶ added in v0.14.0
func ExcludedWithoutAny[T any]() accumulators.ExcludedWithoutAny[*T]
func RequiredIf ¶ added in v0.14.0
func RequiredIf[T any](conditionString string, condition bool) yav.ValidateFunc[*T]
func RequiredUnless ¶ added in v0.14.0
func RequiredUnless[T any](conditionString string, condition bool) yav.ValidateFunc[*T]
func RequiredWithAll ¶ added in v0.14.0
func RequiredWithAll[T any]() accumulators.RequiredWithAll[*T]
func RequiredWithAny ¶ added in v0.14.0
func RequiredWithAny[T any]() accumulators.RequiredWithAny[*T]
func RequiredWithoutAll ¶ added in v0.14.0
func RequiredWithoutAll[T any]() accumulators.RequiredWithoutAll[*T]
func RequiredWithoutAny ¶ added in v0.14.0
func RequiredWithoutAny[T any]() accumulators.RequiredWithoutAny[*T]
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.