1
0
mirror of https://github.com/silenceper/wechat.git synced 2026-02-04 12:52:27 +08:00

fix: 修复 CDATA.MarshalXML 注释

This commit is contained in:
陈灿鑫
2019-11-08 11:17:11 +08:00
parent 1475417a64
commit f6d07aa714

View File

@@ -187,7 +187,7 @@ type CommonToken struct {
// CDATA 使用该类型,在序列化为 xml 文本时文本会被解析器忽略
type CDATA string
// MarshalXML 实现自己的序列化方法
// MarshalXML 实现自己的序列化方法
func (c CDATA) MarshalXML(e *xml.Encoder, start xml.StartElement) error {
return e.EncodeElement(struct {
string `xml:",cdata"`