package
1.101.9
Repository: https://github.com/vonage/gosrvlib.git
Documentation: pkg.go.dev

# Functions

CustomValidationTags returns a map of custom tags with validation function.
ErrorTemplates returns a map of validation tags with error messages as html templates.
New returns a new validator with the specified options.
WithCustomTypeFunc registers a CustomTypeFunc against a number of types.
WithCustomValidationTags register custom tags and validation functions.
WithErrorTemplates sets basic template-based error message translations.
WithFieldNameTag allows to use the field names specified by the tag instead of the original struct names.

# Structs

Error is a custom error adding a Field member.
Validator contains the validator object fields.

# Type aliases

Option is the interface that allows to set configuration options.