validator

package
v0.7.10 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NilValidationsError     = errors.New("nil validations")
	NilFieldsError          = errors.New("nil fields")
	NilDataError            = errors.New("nil data")
	FieldNotFoundError      = errors.New("field not found")
	InvalidBirthdateError   = errors.New("invalid birthdate")
	InvalidMailAddressError = errors.New("invalid mail address")
	EmptyStringFieldError   = errors.New("string field is empty")
)

Functions

func ValidMailAddress

func ValidMailAddress(address string) (string, error)

ValidMailAddress checks if the mail address is valid

func ValidNonEmptyStringFields

func ValidNonEmptyStringFields(
	validations *map[string][]error,
	data interface{},
	fields *map[string]string,
) error

ValidNonEmptyStringFields validates if the string fields are empty

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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