Documentation ¶ Index ¶ func In(value string, list ...string) bool type Validator func New() *Validator func (v *Validator) AddError(key string, message string) func (v *Validator) Check(ok bool, key, message string) func (v *Validator) Valid() bool Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func In ¶ func In(value string, list ...string) bool Types ¶ type Validator ¶ type Validator struct { Errors map[string]string } func New ¶ func New() *Validator func (*Validator) AddError ¶ func (v *Validator) AddError(key string, message string) func (*Validator) Check ¶ func (v *Validator) Check(ok bool, key, message string) func (*Validator) Valid ¶ func (v *Validator) Valid() bool Source Files ¶ View all Source files validator.go Click to show internal directories. Click to hide internal directories.