From 0c40e2d08525d78693648313a34ea34fb0f4bd15 Mon Sep 17 00:00:00 2001 From: yys <4752017@qq.com> Date: Mon, 29 Mar 2021 15:48:22 +0800 Subject: [PATCH] now you can replace binding.Form parser --- binding/binding.go | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/binding/binding.go b/binding/binding.go index 5caeb581..ba45ed10 100644 --- a/binding/binding.go +++ b/binding/binding.go @@ -72,17 +72,17 @@ 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{} + 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{} ) // Default returns the appropriate Binding instance based on the HTTP method