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

Method Bind

binding/query.go:15–21  ·  view source on GitHub ↗
(req *http.Request, obj any)

Source from the content-addressed store, hash-verified

13}
14
15func (queryBinding) Bind(req *http.Request, obj any) error {
16 values := req.URL.Query()
17 if err := mapForm(obj, values); err != nil {
18 return err
19 }
20 return validate(obj)
21}

Callers

nothing calls this directly

Calls 3

mapFormFunction · 0.85
QueryMethod · 0.80
validateFunction · 0.70

Tested by

no test coverage detected