1
0
mirror of https://github.com/labstack/echo.git synced 2024-12-24 20:14:31 +02:00

documentation: changed description for Bind() method of Context interface. Because Bind()` binds not only request body, but also path and query params

This commit is contained in:
ivansmaliakou 2023-03-15 22:50:00 +01:00 committed by Martti T
parent ec642f7df1
commit f22ba6725c

View File

@ -100,8 +100,8 @@ type (
// Set saves data in the context.
Set(key string, val interface{})
// Bind binds the request body into provided type `i`. The default binder
// 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.
Bind(i interface{}) error
// Validate validates provided `i`. It is usually called after `Context#Bind()`.