validator

package
v0.6.48 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	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,
)

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