Adds additional bindings for multipart and form

This commit is contained in:
Manu Mtz-Almeida
2015-07-03 04:20:00 +02:00
parent 8f3047814e
commit 4194adce4c
3 changed files with 74 additions and 3 deletions

View File

@ -33,9 +33,11 @@ type StructValidator interface {
var Validator StructValidator = &defaultValidator{}
var (
JSON = jsonBinding{}
XML = xmlBinding{}
Form = formBinding{}
JSON = jsonBinding{}
XML = xmlBinding{}
Form = formBinding{}
FormPost = formPostBinding{}
FormMultipart = formMultipartBinding{}
)
func Default(method, contentType string) Binding {