msgpack

package
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 13, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncodingMsgPack

type EncodingMsgPack struct{}

EncodingMsgPack is the msgpack encoding registry used by the vmihailenco/msgpack package

func NewEncodingMsgPack

func NewEncodingMsgPack() *EncodingMsgPack

NewEncodingMsgPack returns a new EncodingMsgPack

func (*EncodingMsgPack) Marshal

func (e *EncodingMsgPack) Marshal(v interface{}) ([]byte, error)

Marshal converts the given value to a msgpack byte slice

func (*EncodingMsgPack) Unmarshal

func (e *EncodingMsgPack) Unmarshal(b []byte, v interface{}) error

Unmarshal converts the given msgpack byte slice to the given value

func (*EncodingMsgPack) UnmarshalToMap

func (e *EncodingMsgPack) UnmarshalToMap(b []byte) (map[string]interface{}, error)

UnmarshalToMap converts the json string to a map

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL