Documentation ¶
Index ¶
- Variables
- func AddExtCoder(e ext.Encoder, d ext.Decoder) error
- func Decode(data []byte, v interface{}) errordeprecated
- func DecodeStructAsArray(data []byte, v interface{}) errordeprecated
- func DecodeStructAsMap(data []byte, v interface{}) errordeprecated
- func Encode(v interface{}) ([]byte, error)deprecated
- func EncodeStructAsArray(v interface{}) ([]byte, error)deprecated
- func EncodeStructAsMap(v interface{}) ([]byte, error)deprecated
- 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 DecodeStructAsArray
deprecated
func DecodeStructAsMap
deprecated
func EncodeStructAsArray
deprecated
func EncodeStructAsMap
deprecated
func MarshalAsArray ¶ added in v1.2.0
EncodeStructAsArray encodes data as array format. This is the same thing that StructAsArray sets true.
func MarshalAsMap ¶ added in v1.2.0
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 ¶ added in v1.2.0
func SetComplexTypeCode(code int8)
SetComplexTypeCode sets def.complexTypeCode
func Unmarshal ¶ added in v1.2.0
Unmarshal analyzes the MessagePack-encoded data and stores the result into the pointer of v.
func UnmarshalAsArray ¶ added in v1.2.0
UnmarshalAsArray decodes data that is encoded as array format. This is the same thing that StructAsArray sets true.
func UnmarshalAsMap ¶ added in v1.2.0
UnmarshalAsMap decodes data that is encoded as map format. This is the same thing that StructAsArray sets false.
Types ¶
This section is empty.