MCPcopy
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
28func 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

BindMethod · 0.85
BindBodyMethod · 0.85

Calls 3

DecodeMethod · 0.95
validateFunction · 0.70
NewDecoderMethod · 0.65

Tested by

no test coverage detected