MCPcopy
hub / github.com/AlistGo/alist / Decode

Method Decode

server/webdav/internal/xml/read.go:119–121  ·  view source on GitHub ↗

Decode works like xml.Unmarshal, except it reads the decoder stream to find the start element.

(v interface{})

Source from the content-addressed store, hash-verified

117// Decode works like xml.Unmarshal, except it reads the decoder
118// stream to find the start element.
119func (d *Decoder) Decode(v interface{}) error {
120 return d.DecodeElement(v, nil)
121}
122
123// DecodeElement works like xml.Unmarshal except that it takes
124// a pointer to the start XML element to decode into v.

Callers 15

TestUnmarshalXMLValueFunction · 0.95
TestUnmarshalNSFunction · 0.95
TestUnmarshalNSAttrFunction · 0.95
getRawFilesFunction · 0.80
RsaEncryptFunction · 0.80
getJSONMethod · 0.80
postJSONMethod · 0.80
putJSONMethod · 0.80
uploadFileMethod · 0.80
TokenMethod · 0.80
getFilesMethod · 0.80
getTokenMethod · 0.80

Calls 1

DecodeElementMethod · 0.95

Tested by 3

TestUnmarshalXMLValueFunction · 0.76
TestUnmarshalNSFunction · 0.76
TestUnmarshalNSAttrFunction · 0.76