Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改了 xmltomap 方法的 bug #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

修改了 xmltomap 方法的 bug #18

wants to merge 1 commit into from

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