Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotString = errors.New("value returned by FormatEncoder is not a string type")
Functions ¶
This section is empty.
Types ¶
type Decoder ¶
func NewDecoder ¶
type Encoder ¶
func NewEncoder ¶
type FormatEncoder ¶ added in v1.7.9
type FormatEncoder struct {
// contains filtered or unexported fields
}
func NewFormatEncoder ¶ added in v1.7.9
func NewFormatEncoder(format string) *FormatEncoder
func (*FormatEncoder) Encode ¶ added in v1.7.9
func (e *FormatEncoder) Encode(v interface{}) ([]byte, error)
type JsonDecoder ¶
type JsonDecoder struct {
// contains filtered or unexported fields
}
func (*JsonDecoder) Decode ¶
func (jd *JsonDecoder) Decode(value []byte) map[string]interface{}
type JsonEncoder ¶
type JsonEncoder struct{}
func (*JsonEncoder) Encode ¶
func (e *JsonEncoder) Encode(v interface{}) ([]byte, error)
type PlainDecoder ¶
type PlainDecoder struct { }
func (*PlainDecoder) Decode ¶
func (d *PlainDecoder) Decode(value []byte) map[string]interface{}
Click to show internal directories.
Click to hide internal directories.