validator

package
v0.4.11 Latest Latest
Warning

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

Go to latest
Published: Nov 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")
	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 added in v0.1.6

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