Documentation
¶
Overview ¶
Package yaml encoder/decoder
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CommentStyle ¶
type CommentStyle int
const ( NoComment CommentStyle = iota HeadComment LineComment FootComment )
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func (*Encoder) GetFormatInstructions ¶
func (*Encoder) WithCommentStyle ¶
func (e *Encoder) WithCommentStyle(style CommentStyle) *Encoder
type StreamEncoder ¶
type StreamEncoder struct {
// contains filtered or unexported fields
}
func NewStreamEncoder ¶
func NewStreamEncoder(req any) (*StreamEncoder, error)
func (*StreamEncoder) EnableValidate ¶
func (e *StreamEncoder) EnableValidate()
func (*StreamEncoder) GetFormatInstructions ¶
func (e *StreamEncoder) GetFormatInstructions() string
func (*StreamEncoder) Read ¶
func (e *StreamEncoder) Read(ctx context.Context, ch <-chan string) <-chan any
func (*StreamEncoder) Validate ¶
func (e *StreamEncoder) Validate(req any) error
Click to show internal directories.
Click to hide internal directories.