Query binds the query string into the struct, map[string]string and map[string][]string. Returns *BindError on parse failure (manual mode) or *Error with status 400 (auto-handling mode).
(out any)
| 285 | // Query binds the query string into the struct, map[string]string and map[string][]string. |
| 286 | // Returns *BindError on parse failure (manual mode) or *Error with status 400 (auto-handling mode). |
| 287 | func (b *Bind) Query(out any) error { |
| 288 | bind := binder.GetFromThePool[*binder.QueryBinding](&binder.QueryBinderPool) |
| 289 | bind.EnableSplitting = b.ctx.App().config.EnableSplittingOnParsers |
| 290 | |
| 291 | defer releasePooledBinder(&binder.QueryBinderPool, bind) |
| 292 | |
| 293 | if err := b.returnBindErr(bind.Bind(&b.ctx.RequestCtx().Request, out), BindSourceQuery); err != nil { |
| 294 | return err |
| 295 | } |
| 296 | |
| 297 | return b.validateStruct(out) |
| 298 | } |
| 299 | |
| 300 | // JSON binds the body string into the struct. |
| 301 | // Returns *BindError on parse failure (manual mode) or *Error with status 400 (auto-handling mode). |
nothing calls this directly
no test coverage detected