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

Function decodeYAML

binding/yaml.go:29–35  ·  view source on GitHub ↗
(r io.Reader, obj any)

Source from the content-addressed store, hash-verified

27}
28
29func decodeYAML(r io.Reader, obj any) error {
30 decoder := yaml.NewDecoder(r)
31 if err := decoder.Decode(obj); err != nil {
32 return err
33 }
34 return validate(obj)
35}

Callers 2

BindMethod · 0.85
BindBodyMethod · 0.85

Calls 3

DecodeMethod · 0.95
validateFunction · 0.70
NewDecoderMethod · 0.65

Tested by

no test coverage detected