Documentation
¶
Index ¶
- func Name(in interface{}) string
- type Marshaler
- type MarshalerBase
- func (m *MarshalerBase) Encode(v interface{}) error
- func (m *MarshalerBase) MarshalBool(b bool) error
- func (m *MarshalerBase) MarshalNumber(v constant.Value) (err error)
- func (m *MarshalerBase) MarshalString(s string) error
- func (m *MarshalerBase) Option(handle func(interface{}) bool, opts ...interface{}) error
- func (m *MarshalerBase) WriteComment(prefix string, comments []string, depth int) error
- func (m *MarshalerBase) WriteIndent(level int) error
- func (m *MarshalerBase) WriteNewline() error
- func (m *MarshalerBase) WriteQuoted(in string, delim rune) error
- func (m *MarshalerBase) WriteString(s string) error
- type MultiFile
- type Namer
- type Stater
- type UnmarshalerBase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MarshalerBase ¶
type MarshalerBase struct { Writer io.Writer Self Marshaler encoding.CommonOptions encoding.EncoderOptions }
func (*MarshalerBase) Encode ¶
func (m *MarshalerBase) Encode(v interface{}) error
func (*MarshalerBase) MarshalBool ¶
func (m *MarshalerBase) MarshalBool(b bool) error
func (*MarshalerBase) MarshalNumber ¶
func (m *MarshalerBase) MarshalNumber(v constant.Value) (err error)
func (*MarshalerBase) MarshalString ¶
func (m *MarshalerBase) MarshalString(s string) error
func (*MarshalerBase) Option ¶
func (m *MarshalerBase) Option(handle func(interface{}) bool, opts ...interface{}) error
func (*MarshalerBase) WriteComment ¶
func (m *MarshalerBase) WriteComment(prefix string, comments []string, depth int) error
func (*MarshalerBase) WriteIndent ¶
func (m *MarshalerBase) WriteIndent(level int) error
func (*MarshalerBase) WriteNewline ¶
func (m *MarshalerBase) WriteNewline() error
func (*MarshalerBase) WriteQuoted ¶
func (m *MarshalerBase) WriteQuoted(in string, delim rune) error
func (*MarshalerBase) WriteString ¶
func (m *MarshalerBase) WriteString(s string) error
type UnmarshalerBase ¶
type UnmarshalerBase struct { NewParser func(io.Reader) syntax.Parser Self reflectutil.Unmarshaler encoding.CommonOptions encoding.DecoderOptions Extensions []string }
func (*UnmarshalerBase) Decode ¶
func (unmarshaler *UnmarshalerBase) Decode(in io.Reader, v interface{}) error
func (*UnmarshalerBase) Option ¶
func (unmarshaler *UnmarshalerBase) Option(opts ...interface{}) error
Click to show internal directories.
Click to hide internal directories.