vpointer

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: 4 Imported by: 0

Documentation

Index

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 OmitEmpty

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

func Required added in v0.13.7

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

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.

Jump to

Keyboard shortcuts

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