Documentation ¶
Index ¶
Constants ¶
View Source
const ( HeadCommentTag = "hc" LineCommentTag = "lc" FootCommentTag = "fc" OmitemptyTag = "omitempty" InlineTag = "inline" FlowTag = "flow" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type CommentEncoder ¶
type CommentEncoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func NewEncoder(encoder *yaml.Encoder) *CommentEncoder
func (*CommentEncoder) Encode ¶
func (e *CommentEncoder) Encode(v any) error
Click to show internal directories.
Click to hide internal directories.