Versions in this module Expand all Collapse all v1 v1.1.0 Aug 1, 2021 Changes in this version + var ErrInvalidBoolean = errors.New("invalid boolean") + var ErrNeedPointer = errors.New("need pointer to type") + var ErrNeedStruct = errors.New("need struct type") + var ErrNoMatch = errors.New("string did not match regex") + var ErrNotInRange = errors.New("value not in valid range") + var ErrRequiredMissing = errors.New("required field is missing") + func Process(r *http.Request, fv interface{}) error + type ErrorMap map[string]error + func (ErrorMap) Error() string v1.0.0 Jul 22, 2021 Changes in this version + func Parse(p ParserLister, data url.Values) error + func ParseValue(name string, value Parser, data url.Values) error + type Bool struct + Data *bool + func (b Bool) Parse(d []string) error + type Empty struct + func (Empty) Error() string + type Errors map[string]error + func (Errors) Error() string + type Float32 struct + Data *float32 + func (f Float32) Parse(d []string) error + type Float64 struct + Data *float64 + func (f Float64) Parse(d []string) error + type FloatBetween struct + Max float64 + Min float64 + func (f FloatBetween) Parse(d []string) error + type Int struct + Data *int + func (i Int) Parse(d []string) error + type Int16 struct + Data *int16 + func (i Int16) Parse(d []string) error + type Int32 struct + Data *int32 + func (i Int32) Parse(d []string) error + type Int64 struct + Data *int64 + func (i Int64) Parse(d []string) error + type Int8 struct + Data *int8 + func (i Int8) Parse(d []string) error + type IntBetween struct + Max int64 + Min int64 + func (i IntBetween) Parse(d []string) error + type NoRegexMatch string + func (NoRegexMatch) Error() string + type OutsideBounds string + func (OutsideBounds) Error() string + type Parser interface + Parse func([]string) error + type ParserList map[string]Parser + func (p ParserList) ParserList() ParserList + type ParserLister interface + ParserList func() ParserList + type RegexString struct + Data *string + Regex *regexp.Regexp + func (r RegexString) Parse(d []string) error + type RequiredString String + func (r RequiredString) Parse(d []string) error + type String struct + Data *string + func (s String) Parse(d []string) error + type Time struct + Data *time.Time + func (t Time) Parse(d []string) error + type TimeFormat struct + Data *time.Time + Format string + func (t TimeFormat) Parse(d []string) error + type Uint struct + Data *uint + func (u Uint) Parse(d []string) error + type Uint16 struct + Data *uint16 + func (u Uint16) Parse(d []string) error + type Uint32 struct + Data *uint32 + func (u Uint32) Parse(d []string) error + type Uint64 struct + Data *uint64 + func (u Uint64) Parse(d []string) error + type Uint8 struct + Data *uint8 + func (u Uint8) Parse(d []string) error + type UintBetween struct + Max uint64 + Min uint64 + func (u UintBetween) Parse(d []string) error + type UnixTime struct + Data *time.Time + func (u UnixTime) Parse(d []string) error + type UnknownFormat string + func (UnknownFormat) Error() string