Documentation ¶ Index ¶ Variables func ValidMailAddress(address string) (string, error) func ValidNonEmptyStringFields(validations *map[string][]error, data interface{}, fields *map[string]string) 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. Source Files ¶ View all Source files errors.go mail_address.go non_empty_string_fields.go Directories ¶ Show internal Expand all Path Synopsis error Click to show internal directories. Click to hide internal directories.