Explorar o código

fix: 添加 CDATA 注释

陈灿鑫 %!s(int64=6) %!d(string=hai) anos
pai
achega
bf456aa77b
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      message/message.go

+ 1 - 0
message/message.go

@@ -184,6 +184,7 @@ type CommonToken struct {
 	MsgType      MsgType  `xml:"MsgType"`
 }
 
+// CDATA  使用该类型,在序列化为 xml 文本时文本会被解析器忽略
 type CDATA string
 
 func (c CDATA) MarshalXML(e *xml.Encoder, start xml.StartElement) error {