Versions in this module Expand all Collapse all v0 v0.3.3 Feb 15, 2017 v0.3.2 Nov 5, 2015 v0.3.1 Jul 9, 2015 Changes in this version type Data + func (d Data) BindJSON(v interface{}) error v0.3.0 Feb 23, 2015 Changes in this version + type Data struct + Files map[string]*multipart.FileHeader + Values url.Values + func CreateFromMap(m map[string]string) *Data + func Parse(req *http.Request) (*Data, error) + func (d *Data) Add(key string, value string) + func (d *Data) AddFile(key string, file *multipart.FileHeader) + func (d *Data) Del(key string) + func (d *Data) DelFile(key string) + func (d *Data) Encode() string + func (d *Data) Set(key string, value string) + func (d *Data) Validator() *Validator + func (d Data) FileExists(key string) bool + func (d Data) Get(key string) string + func (d Data) GetAndUnmarshalJSON(key string, v interface{}) error + func (d Data) GetBool(key string) bool + func (d Data) GetBytes(key string) []byte + func (d Data) GetFile(key string) *multipart.FileHeader + func (d Data) GetFileBytes(key string) ([]byte, error) + func (d Data) GetFloat(key string) float64 + func (d Data) GetInt(key string) int + func (d Data) GetMapFromJSON(key string) (map[string]interface{}, error) + func (d Data) GetSliceFromJSON(key string) ([]interface{}, error) + func (d Data) GetStringsSplit(key string, delim string) []string + func (d Data) KeyExists(key string) bool + type ValidationResult struct + Ok bool + func (vr *ValidationResult) Field(field string) *ValidationResult + func (vr *ValidationResult) Message(msg string) *ValidationResult + type Validator struct + func (v *Validator) AcceptFileExts(field string, exts ...string) *ValidationResult + func (v *Validator) AddError(field string, msg string) *ValidationResult + func (v *Validator) Equal(field1 string, field2 string) *ValidationResult + func (v *Validator) ErrorMap() map[string][]string + func (v *Validator) Fields() []string + func (v *Validator) Greater(field string, value float64) *ValidationResult + func (v *Validator) GreaterOrEqual(field string, value float64) *ValidationResult + func (v *Validator) HasErrors() bool + func (v *Validator) LengthRange(field string, min int, max int) *ValidationResult + func (v *Validator) Less(field string, value float64) *ValidationResult + func (v *Validator) LessOrEqual(field string, value float64) *ValidationResult + func (v *Validator) Match(field string, regex *regexp.Regexp) *ValidationResult + func (v *Validator) MatchEmail(field string) *ValidationResult + func (v *Validator) MaxLength(field string, length int) *ValidationResult + func (v *Validator) Messages() []string + func (v *Validator) MinLength(field string, length int) *ValidationResult + func (v *Validator) Require(field string) *ValidationResult + func (v *Validator) RequireFile(field string) *ValidationResult + func (v *Validator) TypeBool(field string) *ValidationResult + func (v *Validator) TypeFloat(field string) *ValidationResult + func (v *Validator) TypeInt(field string) *ValidationResult