Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMarshaler = &JSONMarshaler{}
Functions ¶
This section is empty.
Types ¶
type ByteMarshaler ¶ added in v1.2.1
type ByteMarshaler struct { }
ByteMarshaler ...
func (ByteMarshaler) Marshal ¶ added in v1.2.1
func (m ByteMarshaler) Marshal(v interface{}) ([]byte, error)
func (ByteMarshaler) Unmarshal ¶ added in v1.2.1
func (m ByteMarshaler) Unmarshal(data []byte, v interface{}) error
type JSONMarshaler ¶
type JSONMarshaler struct { }
JSONMarshaler /**
func (JSONMarshaler) Marshal ¶
func (json JSONMarshaler) Marshal(v interface{}) ([]byte, error)
func (JSONMarshaler) Unmarshal ¶
func (json JSONMarshaler) Unmarshal(data []byte, v interface{}) error
type Marshaler ¶
type Marshaler interface { Marshal(v interface{}) ([]byte, error) Unmarshal(data []byte, v interface{}) error }
Marshaler abstraction for marshal and unmarshal
type MsgpackMarshaler ¶
type MsgpackMarshaler struct { }
MsgpackMarshaler /**
func (MsgpackMarshaler) Marshal ¶
func (m MsgpackMarshaler) Marshal(v interface{}) ([]byte, error)
func (MsgpackMarshaler) Unmarshal ¶
func (m MsgpackMarshaler) Unmarshal(data []byte, v interface{}) error
Click to show internal directories.
Click to hide internal directories.