We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Bind()
Context interface
1 parent ec642f7 commit f22ba67Copy full SHA for f22ba67
context.go
@@ -100,8 +100,8 @@ type (
100
// Set saves data in the context.
101
Set(key string, val interface{})
102
103
- // Bind binds the request body into provided type `i`. The default binder
104
- // does it based on Content-Type header.
+ // Bind binds path params, query params and the request body into provided type `i`. The default binder
+ // binds body based on Content-Type header.
105
Bind(i interface{}) error
106
107
// Validate validates provided `i`. It is usually called after `Context#Bind()`.
0 commit comments