Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EncodeCodec ¶
type EncodeCodec string
type Encoder ¶
type Encoder interface { Marshal(v interface{}) ([]byte, error) Unmarshal(data []byte, v interface{}) error }
func DefaultJSONEncoder ¶
func DefaultJSONEncoder() Encoder
func DefaultYAMLEncoder ¶
func DefaultYAMLEncoder() Encoder
type JSONEncoder ¶
type JSONEncoder struct{}
func (JSONEncoder) Marshal ¶
func (encoder JSONEncoder) Marshal(v interface{}) ([]byte, error)
func (JSONEncoder) Unmarshal ¶
func (encoder JSONEncoder) Unmarshal(data []byte, v interface{}) error
type YAMLEncoder ¶
type YAMLEncoder struct{}
func (YAMLEncoder) Marshal ¶
func (encoder YAMLEncoder) Marshal(v interface{}) ([]byte, error)
func (YAMLEncoder) Unmarshal ¶
func (encoder YAMLEncoder) Unmarshal(data []byte, v interface{}) error
Click to show internal directories.
Click to hide internal directories.