-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Open
Description
Issue Description
Comment on Context.Bind
says: "Bind binds the request body into..."
Lines 103 to 105 in f36d566
// Bind binds the request body into provided type `i`. The default binder | |
// does it based on Content-Type header. | |
Bind(i interface{}) error |
... while DefaultBinder.Bind
says another: "Binding is done in following order: 1) ... 2) ... 3) ...
Lines 107 to 110 in f36d566
// Bind implements the `Binder#Bind` function. | |
// Binding is done in following order: 1) path params; 2) query params; 3) request body. Each step COULD override previous | |
// step binded values. For single source binding use their own methods BindBody, BindQueryParams, BindPathParams. | |
func (b *DefaultBinder) Bind(i interface{}, c Context) (err error) { |
I think the comment on Context.Bind
is the one that requires correction, am I right?
Checklist
- Dependencies installed
- No typos
- Searched existing issues and docs
Version/commit
v4.10.0
Metadata
Metadata
Assignees
Labels
No labels