Versions in this module Expand all Collapse all v5 v5.3.52 Jun 25, 2023 v5.3.51 Jun 25, 2023 Changes in this version + func Marshal(v interface{}) ([]byte, error) + func PutDecoder(dec *Decoder) + func PutEncoder(enc *Encoder) + func Register(value interface{}, enc encoderFunc, dec decoderFunc) + func RegisterExt(extID int8, value MarshalerUnmarshaler) + func RegisterExtDecoder(extID int8, value interface{}, ...) + func RegisterExtEncoder(extID int8, value interface{}, ...) + func Unmarshal(data []byte, v interface{}) error + func UnregisterExt(extID int8) + func Version() string + type CustomDecoder interface + DecodeMsgpack func(*Decoder) error + type CustomEncoder interface + EncodeMsgpack func(*Encoder) error + type Decoder struct + func GetDecoder() *Decoder + func NewDecoder(r io.Reader) *Decoder + func (d *Decoder) Buffered() io.Reader + func (d *Decoder) Decode(v interface{}) error + func (d *Decoder) DecodeArrayLen() (int, error) + func (d *Decoder) DecodeBool() (bool, error) + func (d *Decoder) DecodeBytes() ([]byte, error) + func (d *Decoder) DecodeBytesLen() (int, error) + func (d *Decoder) DecodeDuration() (time.Duration, error) + func (d *Decoder) DecodeExtHeader() (extID int8, extLen int, err error) + func (d *Decoder) DecodeFloat32() (float32, error) + func (d *Decoder) DecodeFloat64() (float64, error) + func (d *Decoder) DecodeInt() (int, error) + func (d *Decoder) DecodeInt16() (int16, error) + func (d *Decoder) DecodeInt32() (int32, error) + func (d *Decoder) DecodeInt64() (int64, error) + func (d *Decoder) DecodeInt8() (int8, error) + func (d *Decoder) DecodeInterface() (interface{}, error) + func (d *Decoder) DecodeInterfaceLoose() (interface{}, error) + func (d *Decoder) DecodeMap() (map[string]interface{}, error) + func (d *Decoder) DecodeMapLen() (int, error) + func (d *Decoder) DecodeMulti(v ...interface{}) error + func (d *Decoder) DecodeNil() error + func (d *Decoder) DecodeRaw() (RawMessage, error) + func (d *Decoder) DecodeSlice() ([]interface{}, error) + func (d *Decoder) DecodeString() (string, error) + func (d *Decoder) DecodeTime() (time.Time, error) + func (d *Decoder) DecodeTypedMap() (interface{}, error) + func (d *Decoder) DecodeUint() (uint, error) + func (d *Decoder) DecodeUint16() (uint16, error) + func (d *Decoder) DecodeUint32() (uint32, error) + func (d *Decoder) DecodeUint64() (uint64, error) + func (d *Decoder) DecodeUint8() (uint8, error) + func (d *Decoder) DecodeUntypedMap() (map[interface{}]interface{}, error) + func (d *Decoder) DecodeValue(v reflect.Value) error + func (d *Decoder) DisallowUnknownFields(on bool) + func (d *Decoder) PeekCode() (byte, error) + func (d *Decoder) Query(query string) ([]interface{}, error) + func (d *Decoder) ReadFull(buf []byte) error + func (d *Decoder) Reset(r io.Reader) + func (d *Decoder) ResetDict(r io.Reader, dict []string) + func (d *Decoder) SetCustomStructTag(tag string) + func (d *Decoder) SetMapDecoder(fn func(*Decoder) (interface{}, error)) + func (d *Decoder) Skip() error + func (d *Decoder) UseInternedStrings(on bool) + func (d *Decoder) UseLooseInterfaceDecoding(on bool) + func (d *Decoder) WithDict(dict []string, fn func(*Decoder) error) error + type Encoder struct + func GetEncoder() *Encoder + func NewEncoder(w io.Writer) *Encoder + func (e *Encoder) Encode(v interface{}) error + func (e *Encoder) EncodeArrayLen(l int) error + func (e *Encoder) EncodeBool(value bool) error + func (e *Encoder) EncodeBytes(v []byte) error + func (e *Encoder) EncodeBytesLen(l int) error + func (e *Encoder) EncodeDuration(d time.Duration) error + func (e *Encoder) EncodeExtHeader(extID int8, extLen int) error + func (e *Encoder) EncodeFloat32(n float32) error + func (e *Encoder) EncodeFloat64(n float64) error + func (e *Encoder) EncodeInt(n int64) error + func (e *Encoder) EncodeInt16(n int16) error + func (e *Encoder) EncodeInt32(n int32) error + func (e *Encoder) EncodeInt64(n int64) error + func (e *Encoder) EncodeInt8(n int8) error + func (e *Encoder) EncodeMap(m map[string]interface{}) error + func (e *Encoder) EncodeMapLen(l int) error + func (e *Encoder) EncodeMapSorted(m map[string]interface{}) error + func (e *Encoder) EncodeMulti(v ...interface{}) error + func (e *Encoder) EncodeNil() error + func (e *Encoder) EncodeString(v string) error + func (e *Encoder) EncodeTime(tm time.Time) error + func (e *Encoder) EncodeUint(n uint64) error + func (e *Encoder) EncodeUint16(n uint16) error + func (e *Encoder) EncodeUint32(n uint32) error + func (e *Encoder) EncodeUint64(n uint64) error + func (e *Encoder) EncodeUint8(n uint8) error + func (e *Encoder) EncodeValue(v reflect.Value) error + func (e *Encoder) Reset(w io.Writer) + func (e *Encoder) ResetDict(w io.Writer, dict map[string]int) + func (e *Encoder) SetCustomStructTag(tag string) + func (e *Encoder) SetOmitEmpty(on bool) + func (e *Encoder) SetSortMapKeys(on bool) *Encoder + func (e *Encoder) UseArrayEncodedStructs(on bool) + func (e *Encoder) UseCompactFloats(on bool) + func (e *Encoder) UseCompactInts(on bool) + func (e *Encoder) UseInternedStrings(on bool) + func (e *Encoder) WithDict(dict map[string]int, fn func(*Encoder) error) error + func (e *Encoder) Writer() io.Writer + type Marshaler interface + MarshalMsgpack func() ([]byte, error) + type MarshalerUnmarshaler interface + type RawMessage []byte + func (m *RawMessage) DecodeMsgpack(dec *Decoder) error + func (m RawMessage) EncodeMsgpack(enc *Encoder) error + type Unmarshaler interface + UnmarshalMsgpack func([]byte) error Other modules containing this package github.com/wrepo/msgpack