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

Struct Directive

xmlparser/tokens.go:100–102  ·  view source on GitHub ↗

Directive represents a DOCTYPE directive token. 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 [Directive.Clone] method.

Source from the content-addressed store, hash-verified

98// When obtained from [Decoder], the bytes in the Data field are actual only
99// until the next call to [Decoder.Token]. To retain the data, use the [Directive.Clone] method.
100type Directive struct {
101 Data []byte
102}
103
104// Clone creates a deep copy of the Directive.
105func (d *Directive) Clone() *Directive {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected