# Functions
AllErrors sets whether a chain should return all errors.
FailFast sets whether a chain should stop validation on first error.
New creates a new validation chain.
NewBooleanValidator creates a new boolean validator that returns an error message if condition is false This validator will come handy when dealing with conditional validation.
NewConditionalValidator creates a conditional validator, that runs the validator if the condition is true.
NewEmptyStringValidator creates a string a emptyString validator.
NewPatternValidator creates an instance of the validator The given pattern should be valid regular expression.
NewTCPAddressValidator creates an instance of TCPAddressValidator.
# Structs
Chain represents list of validators and is used to accumulate errors and return them as a single "error".
TCPAddressValidator helps validate a TCP address.
# Interfaces
Validator interface generalizes the validator implementations.
# Type aliases
ChainOption configures a validation chain at creation time.