(text string, meta T)
| 41 | } |
| 42 | |
| 43 | func NewCommentWithMeta[T any](text string, meta T) *Comment[T] { |
| 44 | return &Comment[T]{Text: text, Meta: meta} |
| 45 | } |
| 46 | |
| 47 | func (c *Comment[T]) Encode() string { |
| 48 | jsonData, err := json.Marshal(c) |
no outgoing calls
no test coverage detected