MCPcopy
hub / github.com/labstack/echo / BindQueryParams

Function BindQueryParams

bind.go:56–61  ·  view source on GitHub ↗

BindQueryParams binds query params to bindable object

(c *Context, target any)

Source from the content-addressed store, hash-verified

54
55// BindQueryParams binds query params to bindable object
56func 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

Callers 1

BindMethod · 0.85

Calls 3

bindDataFunction · 0.85
QueryParamsMethod · 0.80
WrapMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…