Ver código fonte

fix: 添加 CDATA 注释

陈灿鑫 6 anos atrás
pai
commit
bf456aa77b
1 arquivos alterados com 1 adições e 0 exclusões
  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 {