Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultMarshaler = &JSONMarshaler{}
Functions ¶
This section is empty.
Types ¶
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 abtraction 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.