MCPcopy
hub / github.com/minio/minio-go / xmlDecoder

Function xmlDecoder

pkg/credentials/error_response.go:79–82  ·  view source on GitHub ↗

xmlDecoder provide decoded value in xml.

(body io.Reader, v interface{})

Source from the content-addressed store, hash-verified

77
78// xmlDecoder provide decoded value in xml.
79func xmlDecoder(body io.Reader, v interface{}) error {
80 d := xml.NewDecoder(body)
81 return d.Decode(v)
82}
83
84// xmlDecodeAndBody reads the whole body up to 1MB and
85// tries to XML decode it into v.

Callers 1

xmlDecodeAndBodyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected