MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / Text

Struct Text

xmlparser/tokens.go:193–196  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
193type Text struct {
194 Data []byte
195 CData bool
196}
197
198// Clone creates a deep copy of the Text.
199func (t *Text) Clone() *Text {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected