Documentation
¶
Index ¶
- func Address(prefix string, address shared.Address) []shared.FieldError
- func All(fieldErrors ...[]shared.FieldError) []shared.FieldError
- func Country(source string, country string) []shared.FieldError
- func Date(source string, date shared.Date) []shared.FieldError
- func Empty(source string, value string) []shared.FieldError
- func If(ok bool, e []shared.FieldError) []shared.FieldError
- func IfElse(ok bool, eIf []shared.FieldError, eElse []shared.FieldError) []shared.FieldError
- func IfFunc(ok bool, fn func() []shared.FieldError) []shared.FieldError
- func IsValid[V isValid](source string, v V) []shared.FieldError
- func OptionalTime(source string, t *time.Time) []shared.FieldError
- func Required(source string, value string) []shared.FieldError
- func Time(source string, t interface{ ... }) []shared.FieldError
- func UUID(source string, value string) []shared.FieldError
- func Unset(source string, v interface{ ... }) []shared.FieldError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func All ¶
func All(fieldErrors ...[]shared.FieldError) []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
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.