BindQueryParams binds query params to bindable object
(c *Context, target any)
| 54 | |
| 55 | // BindQueryParams binds query params to bindable object |
| 56 | func BindQueryParams(c *Context, target any) error { |
| 57 | if err := bindData(target, c.QueryParams(), "query", nil); err != nil { |
| 58 | return ErrBadRequest.Wrap(err) |
| 59 | } |
| 60 | return nil |
| 61 | } |
| 62 | |
| 63 | // BindBody binds request body contents to bindable object |
| 64 | // NB: then binding forms take note that this implementation uses standard library form parsing |
no test coverage detected
searching dependent graphs…