Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
29
func
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
Bind
Method · 0.85
BindBody
Method · 0.85
Calls
3
Decode
Method · 0.95
validate
Function · 0.70
NewDecoder
Method · 0.65
Tested by
no test coverage detected