Documentation ¶
Index ¶
- func Marshal(v interface{}) ([]byte, error)
- type Encoder
- func (e *Encoder) Encode(value interface{}) error
- func (e *Encoder) EncodeHeader(value interface{}) error
- func (e *Encoder) Fields() Fields
- func (e *Encoder) SetDelimiter(delim rune) *Encoder
- func (e *Encoder) SetExpandPath(path ...string) *Encoder
- func (e *Encoder) SetLineBreak(lineBreak string) *Encoder
- func (e *Encoder) SetTagKey(tagKey string) *Encoder
- type Field
- type Fields
- type Tag
- type Tags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func (*Encoder) EncodeHeader ¶
func (*Encoder) SetDelimiter ¶
func (*Encoder) SetExpandPath ¶
func (*Encoder) SetLineBreak ¶
type Tag ¶
type Tag string
A StructTag is the tag string in a struct field.
By convention, tag strings are a concatenation of optionally space-separated key:"value" pairs. Each key is a non-empty string consisting of non-control characters other than space (U+0020 ' '), quote (U+0022 '"'), and colon (U+003A ':'). Each value is quoted using U+0022 '"' characters and Go string literal syntax.
Click to show internal directories.
Click to hide internal directories.