Documentation
¶
Index ¶
- type Func
- func (fn Func) And(other Func) Func
- func (fn Func) Build() func(string) error
- func (fn Func) Contains(value string, msgAndArgs ...any) Func
- func (fn Func) Matches(pattern string, msgAndArgs ...any) Func
- func (fn Func) MaxLength(length int, msgAndArgs ...any) Func
- func (fn Func) MinLength(length int, msgAndArgs ...any) Func
- func (fn Func) Or(other Func) Func
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Func ¶
Func determines if the input string is valid, returning nil if valid or an error if invalid
func NewValidation ¶
func NewValidation() Func
NewValidation creates the initial chain for validations
func (Func) And ¶
And allows chaining another *required* validation function to the end of other functions in the chain
Click to show internal directories.
Click to hide internal directories.