Documentation
¶
Index ¶
- Variables
- func AddExtCoder(e ext.Encoder, d ext.Decoder) error
- func Marshal(v interface{}) ([]byte, error)
- func MarshalAsArray(v interface{}) ([]byte, error)
- func MarshalAsMap(v interface{}) ([]byte, error)
- func RemoveExtCoder(e ext.Encoder, d ext.Decoder) error
- func SetComplexTypeCode(code int8)
- func Unmarshal(data []byte, v interface{}) error
- func UnmarshalAsArray(data []byte, v interface{}) error
- func UnmarshalAsMap(data []byte, v interface{}) 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 MarshalAsArray ¶
MarshalAsArray encodes data as array format. This is the same thing that StructAsArray sets true.
func MarshalAsMap ¶
MarshalAsMap encodes data as map format. This is the same thing that StructAsArray sets false.
func RemoveExtCoder ¶
RemoveExtCoder removes encoders for extension types.
func SetComplexTypeCode ¶
func SetComplexTypeCode(code int8)
SetComplexTypeCode sets def.complexTypeCode
func Unmarshal ¶
Unmarshal analyzes the MessagePack-encoded data and stores the result into the pointer of v.
func UnmarshalAsArray ¶
UnmarshalAsArray decodes data that is encoded as array format. This is the same thing that StructAsArray sets true.
func UnmarshalAsMap ¶
UnmarshalAsMap decodes data that is encoded as map format. This is the same thing that StructAsArray sets false.
Types ¶
This section is empty.
