Documentation ¶
Index ¶
Constants ¶
View Source
const (
AttrCommentSep = ". "
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentsFlag ¶
type CommentsFlag int
CommentsFlag comments encoding flags type.
const ( CommentsDisabled CommentsFlag = iota CommentsOnHead CommentsInLine CommentsOnFoot )
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder implements config encoder.
func NewEncoder ¶
NewEncoder initializes and returns an `Encoder`.
type Option ¶
type Option func(*Options)
Option gives ability to alter config encoder output settings.
func WithComments ¶
func WithComments(flag CommentsFlag) Option
WithComments enables comments in the encoder.
func WithCommentsMap ¶
WithCommentsMap enables comments from map.
func WithOmitEmpty ¶
WithOmitEmpty toggles omitempty handling.
Click to show internal directories.
Click to hide internal directories.