Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/gin-gonic/gin
/ decodeXML
Function
decodeXML
binding/xml.go:28–34 ·
view source on GitHub ↗
(r io.Reader, obj any)
Source
from the content-addressed store, hash-verified
26
}
27
28
func
decodeXML(r io.Reader, obj any) error {
29
decoder := xml.NewDecoder(r)
30
if
err := decoder.Decode(obj); err != nil {
31
return
err
32
}
33
return
validate(obj)
34
}
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