Skip to content

Commit

Permalink
feat(binding): support override default binding implement (gin-gonic#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ssfyn authored Mar 23, 2024
1 parent d4e4136 commit fd1faad
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions binding/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,18 +73,18 @@ var Validator StructValidator = &defaultValidator{}
// These implement the Binding interface and can be used to bind the data
// present in the request to struct instances.
var (
JSON = jsonBinding{}
XML = xmlBinding{}
Form = formBinding{}
Query = queryBinding{}
FormPost = formPostBinding{}
FormMultipart = formMultipartBinding{}
ProtoBuf = protobufBinding{}
MsgPack = msgpackBinding{}
YAML = yamlBinding{}
Uri = uriBinding{}
Header = headerBinding{}
TOML = tomlBinding{}
JSON BindingBody = jsonBinding{}
XML BindingBody = xmlBinding{}
Form Binding = formBinding{}
Query Binding = queryBinding{}
FormPost Binding = formPostBinding{}
FormMultipart Binding = formMultipartBinding{}
ProtoBuf BindingBody = protobufBinding{}
MsgPack BindingBody = msgpackBinding{}
YAML BindingBody = yamlBinding{}
Uri BindingUri = uriBinding{}
Header Binding = headerBinding{}
TOML BindingBody = tomlBinding{}
)

// Default returns the appropriate Binding instance based on the HTTP method
Expand Down

0 comments on commit fd1faad

Please sign in to comment.