package
2.1.4
Repository: https://github.com/lithictech/go-aperitif.git
Documentation: pkg.go.dev

# Functions

NewRegistry returns a new Registry using the given nowSource.
Validate validates the fields of a struct based on 'validator' tags and returns errors found indexed by the field name.

# Variables

ErrInvalidIntID is the error returned when a string is not a valid integer ID.
ErrInvalidURL is the error returned when a string cannot be parsed as a request URI.
ErrInvalidUUID4 is the error returned when a string cannot be parsed as a UUID4.

# Structs

Registry is a registry of all available validation functions.

# Type aliases

ErrorArray is a slice of errors returned by the Validate function.
ErrorMap is a map which contains all errors from validating a struct.