Documentation ¶
Index ¶
- func Between[S ~[]T, T any](min, max int) yav.ValidateFunc[S]
- func ExcludedIf[S ~[]T, T any](conditionString string, condition bool) yav.ValidateFunc[S]
- func ExcludedUnless[S ~[]T, T any](conditionString string, condition bool) yav.ValidateFunc[S]
- func ExcludedWithAll[S ~[]T, T any]() accumulators.ExcludedWithAll[S]
- func ExcludedWithAny[S ~[]T, T any]() accumulators.ExcludedWithAny[S]
- func ExcludedWithoutAll[S ~[]T, T any]() accumulators.ExcludedWithoutAll[S]
- func ExcludedWithoutAny[S ~[]T, T any]() accumulators.ExcludedWithoutAny[S]
- func Items[S ~[]T, T any](validateFuncs ...yav.ValidateFunc[T]) yav.ValidateFunc[S]
- func Max[S ~[]T, T any](parameter int) yav.ValidateFunc[S]
- func Min[S ~[]T, T any](parameter int) yav.ValidateFunc[S]
- func OmitEmpty[S ~[]T, T any](_ string, value S) (stop bool, err error)
- func Required[S ~[]T, T any](name string, value S) (stop bool, err error)
- func RequiredIf[S ~[]T, T any](conditionString string, condition bool) yav.ValidateFunc[S]
- func RequiredUnless[S ~[]T, T any](conditionString string, condition bool) yav.ValidateFunc[S]
- func RequiredWithAll[S ~[]T, T any]() accumulators.RequiredWithAll[S]
- func RequiredWithAny[S ~[]T, T any]() accumulators.RequiredWithAny[S]
- func RequiredWithoutAll[S ~[]T, T any]() accumulators.RequiredWithoutAll[S]
- func RequiredWithoutAny[S ~[]T, T any]() accumulators.RequiredWithoutAny[S]
- func Unique[S ~[]T, T comparable](name string, value S) (stop bool, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ExcludedIf ¶ added in v0.9.4
func ExcludedIf[S ~[]T, T any](conditionString string, condition bool) yav.ValidateFunc[S]
func ExcludedUnless ¶ added in v0.9.4
func ExcludedUnless[S ~[]T, T any](conditionString string, condition bool) yav.ValidateFunc[S]
func ExcludedWithAll ¶ added in v0.9.4
func ExcludedWithAll[S ~[]T, T any]() accumulators.ExcludedWithAll[S]
func ExcludedWithAny ¶ added in v0.9.4
func ExcludedWithAny[S ~[]T, T any]() accumulators.ExcludedWithAny[S]
func ExcludedWithoutAll ¶ added in v0.9.4
func ExcludedWithoutAll[S ~[]T, T any]() accumulators.ExcludedWithoutAll[S]
func ExcludedWithoutAny ¶ added in v0.9.4
func ExcludedWithoutAny[S ~[]T, T any]() accumulators.ExcludedWithoutAny[S]
func Items ¶ added in v0.4.0
func Items[S ~[]T, T any](validateFuncs ...yav.ValidateFunc[T]) yav.ValidateFunc[S]
func RequiredIf ¶ added in v0.9.0
func RequiredIf[S ~[]T, T any](conditionString string, condition bool) yav.ValidateFunc[S]
func RequiredUnless ¶ added in v0.9.0
func RequiredUnless[S ~[]T, T any](conditionString string, condition bool) yav.ValidateFunc[S]
func RequiredWithAll ¶ added in v0.2.0
func RequiredWithAll[S ~[]T, T any]() accumulators.RequiredWithAll[S]
func RequiredWithAny ¶
func RequiredWithAny[S ~[]T, T any]() accumulators.RequiredWithAny[S]
func RequiredWithoutAll ¶ added in v0.2.0
func RequiredWithoutAll[S ~[]T, T any]() accumulators.RequiredWithoutAll[S]
func RequiredWithoutAny ¶
func RequiredWithoutAny[S ~[]T, T any]() accumulators.RequiredWithoutAny[S]
Types ¶
This section is empty.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.