Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ValidationFunc ¶
func Length ¶
func Length(length int) ValidationFunc
func MaxLength ¶
func MaxLength(maxLength int) ValidationFunc
func MinLength ¶
func MinLength(minLength int) ValidationFunc
func Required ¶
func Required() ValidationFunc
type Validator ¶
type Validator struct {
// contains filtered or unexported fields
}
func NewValidator ¶
NewValidator returns a new Validator. The configPath is the path to the config value that is being validated.
Click to show internal directories.
Click to hide internal directories.