Skip to content

Conversation

leyle
Copy link

@leyle leyle commented Aug 15, 2019

从 issues 中的这里得来的
#16

@objcoding
Copy link
Owner

非常感谢你的contribution, 我先看看代码哈

Copy link
Owner

@objcoding objcoding left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

handle err

}

for k, v := range m {
e.Encode(xmlMapEntry{XMLName: xml.Name{Local: k}, Value: v})
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for k, v := range m {
err := e.Encode(xmlMapEntry{XMLName: xml.Name{Local: k}, Value: v})
if err != nil {
return err
break
}

@objcoding
Copy link
Owner

MarshalXML/UnmarshalXML,以及xmlMapEntry可以放在params.go文件中

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants