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

Struct Comment

xmlparser/tokens.go:126–128  ·  view source on GitHub ↗

Comment represents a comment token (e.g., <!-- comment -->). 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 [Comment.Clone] method.

Source from the content-addressed store, hash-verified

124// When obtained from [Decoder], the bytes in the Data field are actual only
125// until the next call to [Decoder.Token]. To retain the data, use the [Comment.Clone] method.
126type Comment struct {
127 Data []byte
128}
129
130// Clone creates a deep copy of the Comment.
131func (c *Comment) Clone() *Comment {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected