Versions in this module Expand all Collapse all v0 v0.3.0 Dec 7, 2016 v0.2.0 Nov 10, 2015 Changes in this version type Field + ErrorMessage string v0.1.0 Dec 27, 2014 Changes in this version + const ContentTypeError + const DeserializationError + const RequiredError + const StatusUnprocessableEntity + const TypeError + var MaxMemory = int64(1024 * 1024 * 10) + var TimeFormat = time.RFC3339 + type Binder interface + Bind func(string, []string, Errors) Errors + type Error struct + Classification string + FieldNames []string + Message string + func (e Error) Error() string + func (e Error) Fields() []string + func (e Error) Kind() string + type Errors []Error + func Bind(req *http.Request, userStruct FieldMapper) Errors + func Form(req *http.Request, userStruct FieldMapper) Errors + func Json(req *http.Request, userStruct FieldMapper) Errors + func MultipartForm(req *http.Request, userStruct FieldMapper) Errors + func Validate(req *http.Request, userStruct FieldMapper) Errors + func (e *Errors) Add(fieldNames []string, classification, message string) + func (e *Errors) Has(class string) bool + func (e *Errors) Len() int + func (e Errors) Error() string + func (e Errors) Handle(response http.ResponseWriter) bool + type Field struct + Binder func(string, []string, Errors) Errors + Form string + Required bool + TimeFormat string + type FieldMap map[interface{}]interface + type FieldMapper interface + FieldMap func() FieldMap + type Validator interface + Validate func(*http.Request, Errors) Errors