Documentation ¶
Index ¶
- Variables
- func AddExtCoder(e ext.Encoder, d ext.Decoder) error
- func Decode(data []byte, v interface{}) error
- func DecodeStructAsArray(data []byte, v interface{}) error
- func DecodeStructAsMap(data []byte, v interface{}) error
- func Encode(v interface{}) ([]byte, error)
- func EncodeStructAsArray(v interface{}) ([]byte, error)
- func EncodeStructAsMap(v interface{}) ([]byte, error)
- func RemoveExtCoder(e ext.Encoder, d ext.Decoder) error
Constants ¶
This section is empty.
Variables ¶
var StructAsArray = false
StructAsArray is encoding option. If this option sets true, default encoding sets to array-format.
Functions ¶
func AddExtCoder ¶
AddExtCoder adds encoders for extension types.
func Decode ¶
Decode analyzes the MessagePack-encoded data and stores the result into the pointer of v.
func DecodeStructAsArray ¶
DecodeStructAsArray decodes data that is encoded as array format. This is the same thing that StructAsArray sets true.
func DecodeStructAsMap ¶
DecodeStructAsMap decodes data that is encoded as map format. This is the same thing that StructAsArray sets false.
func EncodeStructAsArray ¶
EncodeStructAsArray encodes data as array format. This is the same thing that StructAsArray sets true.
func EncodeStructAsMap ¶
EncodeStructAsMap encodes data as map format. This is the same thing that StructAsArray sets false.
Types ¶
This section is empty.