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

Struct ProcInst

xmlparser/tokens.go:152–155  ·  view source on GitHub ↗

ProcInst represents a processing instruction token (e.g., <?xml version="1.0"?>). When obtained from [Decoder], the bytes in the Target and Inst fields are actual only until the next call to [Decoder.Token]. To retain the data, use the [ProcInst.Clone] method.

Source from the content-addressed store, hash-verified

150// When obtained from [Decoder], the bytes in the Target and Inst fields are actual only
151// until the next call to [Decoder.Token]. To retain the data, use the [ProcInst.Clone] method.
152type ProcInst struct {
153 Target []byte
154 Inst []byte
155}
156
157// Clone creates a deep copy of the ProcInst.
158func (p *ProcInst) Clone() *ProcInst {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected