We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8790d08 commit d4e4136Copy full SHA for d4e4136
binding/query.go
@@ -12,9 +12,9 @@ func (queryBinding) Name() string {
12
return "query"
13
}
14
15
-func (q queryBinding) Bind(req *http.Request, obj any) error {
+func (queryBinding) Bind(req *http.Request, obj any) error {
16
values := req.URL.Query()
17
- if err := mapFormByTag(obj, values, q.Name()); err != nil {
+ if err := mapForm(obj, values); err != nil {
18
return err
19
20
return validate(obj)
binding/query_test.go
0 commit comments