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

Method BindBody

binding/yaml.go:25–27  ·  view source on GitHub ↗
(body []byte, obj any)

Source from the content-addressed store, hash-verified

23}
24
25func (yamlBinding) BindBody(body []byte, obj any) error {
26 return decodeYAML(bytes.NewReader(body), obj)
27}
28
29func decodeYAML(r io.Reader, obj any) error {
30 decoder := yaml.NewDecoder(r)

Callers

nothing calls this directly

Calls 1

decodeYAMLFunction · 0.85

Tested by

no test coverage detected