vslice

package
v0.16.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Between added in v0.7.3

func Between[S ~[]T, T any](min, max int) yav.ValidateFunc[S]

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 Max

func Max[S ~[]T, T any](parameter int) yav.ValidateFunc[S]

func Min

func Min[S ~[]T, T any](parameter int) yav.ValidateFunc[S]

func OmitEmpty

func OmitEmpty[S ~[]T, T any](_ string, value S) (stop bool, err error)

func Required

func Required[S ~[]T, T any](name string, value S) (stop bool, err error)

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]

func Unique added in v0.3.0

func Unique[S ~[]T, T comparable](name string, value S) (stop bool, err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL