MCPcopy
hub / github.com/gin-gonic/gin / BindQuery

Method BindQuery

context.go:773–775  ·  view source on GitHub ↗

BindQuery is a shortcut for c.MustBindWith(obj, binding.Query).

(obj any)

Source from the content-addressed store, hash-verified

771
772// BindQuery is a shortcut for c.MustBindWith(obj, binding.Query).
773func (c *Context) BindQuery(obj any) error {
774 return c.MustBindWith(obj, binding.Query)
775}
776
777// BindYAML is a shortcut for c.MustBindWith(obj, binding.YAML).
778func (c *Context) BindYAML(obj any) error {

Callers 2

TestContextBindWithQueryFunction · 0.80

Calls 1

MustBindWithMethod · 0.95

Tested by 2

TestContextBindWithQueryFunction · 0.64