//
pkg.gl
Category
github.com/Eldiai/go_library
internal
validator
package
0.0.0-20230224025222-84bdda5fc159
Repository:
https://github.com/eldiai/go_library.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
1
Dependents
2
Files
45 SLOC
#
Functions
In
In returns true if a specific value is in a list of strings.
Matches
Matches returns true if a string value matches a specific regexp pattern.
New
New is a helper which creates a new Validator instance with an empty errors map.
Unique
Unique returns true if all string values in a slice are unique.
#
Variables
EmailRX
EmailRX is a regex for sanity checking the format of email addresses.
#
Structs
Validator
Validator struct type contains a map of validation errors.