Documentation ¶
Index ¶
- func DecodeMsgpack(r io.Reader, vs ...any) error
- func EncodeMsgpack(w io.Writer, vs ...any) error
- func MarshalMsgpack(v any) ([]byte, error)
- func PutMsgpackDecoder(dec *MsgpackDecoder)
- func PutMsgpackEncoder(enc *MsgpackEncoder)
- func UnmarshalMsgpack(b []byte, v any) error
- type Complex
- type DecoderType
- type EncoderType
- type Float
- type Integer
- type MsgpackDecoder
- type MsgpackEncoder
- type Ordered
- type Signed
- type Unsigned
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalMsgpack ¶
func PutMsgpackDecoder ¶
func PutMsgpackDecoder(dec *MsgpackDecoder)
func PutMsgpackEncoder ¶
func PutMsgpackEncoder(enc *MsgpackEncoder)
func UnmarshalMsgpack ¶
Types ¶
type Complex ¶
type Complex interface { ~complex64 | ~complex128 }
Complex is a constraint that permits any complex numeric type. If future releases of Go add new predeclared complex numeric types, this constraint will be modified to include them.
type DecoderType ¶
type EncoderType ¶
type Float ¶
Float is a constraint that permits any floating-point type. If future releases of Go add new predeclared floating-point types, this constraint will be modified to include them.
type Integer ¶
Integer is a constraint that permits any integer type. If future releases of Go add new predeclared integer types, this constraint will be modified to include them.
type MsgpackDecoder ¶
type MsgpackDecoder = msgpack.Decoder
func NewMsgpackDecoder ¶
func NewMsgpackDecoder(r io.Reader) *MsgpackDecoder
NewMsgpackDecoder returns a new Decoder that reads from r. uses json CustomStructTag, and loose interface decoding.
type MsgpackEncoder ¶
type MsgpackEncoder = msgpack.Encoder
func NewMsgpackEncoder ¶
func NewMsgpackEncoder(w io.Writer) *MsgpackEncoder
NewMsgpackDecoder returns a new Decoder that writes to w. uses json CustomStructTag, compact floats and ints.
type Ordered ¶
Ordered is a constraint that permits any ordered type: any type that supports the operators < <= >= >. If future releases of Go add new ordered types, this constraint will be modified to include them.