Text represents a text token. CData indicates whether the text is a CDATA section. When obtained from [Decoder], the bytes in the Data field are actual only until the next call to [Decoder.Token]. To retain the data, use the [Text.Clone] method.
| 191 | // When obtained from [Decoder], the bytes in the Data field are actual only |
| 192 | // until the next call to [Decoder.Token]. To retain the data, use the [Text.Clone] method. |
| 193 | type Text struct { |
| 194 | Data []byte |
| 195 | CData bool |
| 196 | } |
| 197 | |
| 198 | // Clone creates a deep copy of the Text. |
| 199 | func (t *Text) Clone() *Text { |
nothing calls this directly
no outgoing calls
no test coverage detected