MCPcopy
hub / github.com/gin-gonic/gin / BindBody

Method BindBody

binding/xml.go:24–26  ·  view source on GitHub ↗
(body []byte, obj any)

Source from the content-addressed store, hash-verified

22}
23
24func (xmlBinding) BindBody(body []byte, obj any) error {
25 return decodeXML(bytes.NewReader(body), obj)
26}
27
28func decodeXML(r io.Reader, obj any) error {
29 decoder := xml.NewDecoder(r)

Callers

nothing calls this directly

Calls 1

decodeXMLFunction · 0.85

Tested by

no test coverage detected