validate

package
v1.18.1-0...-4457fa6 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Address

func Address(prefix string, address shared.Address) []shared.FieldError

func All

func All(fieldErrors ...[]shared.FieldError) []shared.FieldError

func Country

func Country(source string, country string) []shared.FieldError

func Date

func Date(source string, date shared.Date) []shared.FieldError

func Empty

func Empty(source string, value string) []shared.FieldError

func If

func If(ok bool, e []shared.FieldError) []shared.FieldError

func IfElse

func IfElse(ok bool, eIf []shared.FieldError, eElse []shared.FieldError) []shared.FieldError

func IfFunc

func IfFunc(ok bool, fn func() []shared.FieldError) []shared.FieldError

func IsValid

func IsValid[V isValid](source string, v V) []shared.FieldError

func OptionalTime

func OptionalTime(source string, t *time.Time) []shared.FieldError

func Required

func Required(source string, value string) []shared.FieldError

func Time

func Time(source string, t interface{ IsZero() bool }) []shared.FieldError

func UUID

func UUID(source string, value string) []shared.FieldError

func Unset

func Unset(source string, v interface{ Unset() bool }) []shared.FieldError

Types

This section is empty.

Jump to

Keyboard shortcuts

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