升级接口约束
This commit is contained in:
3
xml.go
3
xml.go
@ -20,6 +20,9 @@ var (
|
||||
|
||||
type ownXml struct{}
|
||||
|
||||
func (o *ownXml) Unmarshal(byteData []byte, receiver any) error {
|
||||
return o.UnmarshalWithNumber(byteData, receiver)
|
||||
}
|
||||
func (o *ownXml) UnmarshalWithNumber(byteData []byte, receiver any) error {
|
||||
res, err := xml2map.NewDecoder(bytes.NewReader(byteData)).Decode()
|
||||
if nil != err {
|
||||
|
Reference in New Issue
Block a user