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

Method Bind

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

Source from the content-addressed store, hash-verified

19}
20
21func (yamlBinding) Bind(req *http.Request, obj any) error {
22 return decodeYAML(req.Body, obj)
23}
24
25func (yamlBinding) BindBody(body []byte, obj any) error {
26 return decodeYAML(bytes.NewReader(body), obj)

Callers

nothing calls this directly

Calls 1

decodeYAMLFunction · 0.85

Tested by

no test coverage detected