validators

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains added in v0.5.0

func Contains(va any, contain string) (bool, error)

func Equal added in v0.5.0

func Equal[T comparable](a, equal T) bool

func From added in v0.5.0

func From(v any, from string, not bool) (bool, error)

func FromArray added in v0.5.0

func FromArray[T comparable](v []T, from []T, not bool) (bool, error)

func Max added in v0.5.0

func Max[T int | float64](v, max T) bool

func Min added in v0.5.0

func Min[T int | float64](v, min T) bool

func NotEqual added in v0.5.0

func NotEqual[T comparable](a, notEqual T) bool

func Regex added in v0.5.0

func Regex(s, regex string) bool

func ValidateContains added in v0.5.0

func ValidateContains[T any](v T, ast *model.AstValue) error

func ValidateEqual added in v0.5.0

func ValidateEqual(v any, ast *model.AstValue) error

func ValidateFrom added in v0.5.0

func ValidateFrom[T any](v T, ast *model.AstValue) error

func ValidateGroups added in v0.2.1

func ValidateGroups(groups map[string]*model.Group, groupSize map[string]int, groupErrors map[string][]error) error

func ValidateMax added in v0.5.0

func ValidateMax(v any, ast *model.AstValue) error

func ValidateMin added in v0.5.0

func ValidateMin(v any, ast *model.AstValue) error

func ValidateNotContains added in v0.5.0

func ValidateNotContains[T any](v T, ast *model.AstValue) error

func ValidateNotEqual added in v0.5.0

func ValidateNotEqual(v any, ast *model.AstValue) error

func ValidateNotFrom added in v0.5.0

func ValidateNotFrom[T any](v T, ast *model.AstValue) error

func ValidateRegex added in v0.5.0

func ValidateRegex(v any, ast *model.AstValue) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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