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.
| 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. |
| 126 | type Comment struct { |
| 127 | Data []byte |
| 128 | } |
| 129 | |
| 130 | // Clone creates a deep copy of the Comment. |
| 131 | func (c *Comment) Clone() *Comment { |
nothing calls this directly
no outgoing calls
no test coverage detected