MCPcopy Create free account
hub / github.com/go-chi/render / DecodeXML

Function DecodeXML

decoder.go:48–51  ·  view source on GitHub ↗

DecodeXML decodes a given reader into an interface using the xml decoder.

(r io.Reader, v interface{})

Source from the content-addressed store, hash-verified

46
47// DecodeXML decodes a given reader into an interface using the xml decoder.
48func DecodeXML(r io.Reader, v interface{}) error {
49 defer io.Copy(ioutil.Discard, r) //nolint:errcheck
50 return xml.NewDecoder(r).Decode(v)
51}
52
53// DecodeForm decodes a given reader into an interface using the form decoder.
54func DecodeForm(r io.Reader, v interface{}) error {

Callers 1

DefaultDecoderFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…