msgpackmarshaler

package
v0.0.0-...-2c17daf Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2021 License: MIT, MIT Imports: 2 Imported by: 0

README

Msgpack Marshaler Msgpack格式的序列化器

通过 github.com/vmihailenco/msgpack 实现的序列化器

配置说明

#TOML版本,其他版本可以根据对应格式配置
Marshaler: "msgpack"

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgpackMarshaler

type MsgpackMarshaler struct {
}

MsgpackMarshaler msgpack marshaler

func (*MsgpackMarshaler) Marshal

func (m *MsgpackMarshaler) Marshal(v interface{}) ([]byte, error)

Marshal Marshal data model to bytes. Return marshaled bytes and any erro rasied.

func (*MsgpackMarshaler) Unmarshal

func (m *MsgpackMarshaler) Unmarshal(bytes []byte, v interface{}) error

Unmarshal Unmarshal bytes to data model. Parameter v should be pointer to empty data model which data filled in. Return any error raseid.

Jump to

Keyboard shortcuts

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