Versions in this module Expand all Collapse all v0 v0.4.0 Jun 18, 2018 Changes in this version + type Error struct + Constraint string + Field string + Key string + Msg string + Value string + func (e Error) String() string + type Errors []*Error + func ValidateValues(values map[string]string, constraints map[string]string) Errors + func (e Errors) String() string v0.3.1 Apr 27, 2018 Changes in this version + var ErrTypeOrParserIsNil = errors.New("valpar: type or value parser is nil") + var ErrValueParserIsAlreadyExists = errors.New("valpar: value parser is already exists") + var StructTagName string + var TimeFormats []string + var Version = "0.3.1" + func AddValueParser(typ reflect.Type, parser Parser) error + func Body(contentType string, body io.Reader, typ reflect.Type) (reflect.Value, error) + func Struct(key string, typ reflect.Type, params url.Values) (reflect.Value, error) + func Validate(s interface{}) (validator.ValidationErrors, error) + func ValidateValue(v interface{}, rules string) bool + func Validator() *validator.Validate + type Parser func(key string, typ reflect.Type, params url.Values) (reflect.Value, error) + func ValueParser(typ reflect.Type) (Parser, bool)