marshaler

package
v0.0.0-...-3ad59aa Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2021 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Json

type Json struct {
}

use json

func NewJson

func NewJson() *Json

func (*Json) Marshal

func (e *Json) Marshal(value interface{}) ([]byte, error)

func (*Json) Unmarshal

func (e *Json) Unmarshal(value *[]byte, ref interface{}) error

type Marshaler

type Marshaler interface {
	Marshal(value interface{}) ([]byte, error)
	Unmarshal(value *[]byte, ref interface{}) error
}

type Msgpack

type Msgpack struct {
}

func NewMsgpack

func NewMsgpack() *Msgpack

func (*Msgpack) Marshal

func (e *Msgpack) Marshal(value interface{}) ([]byte, error)

func (*Msgpack) Unmarshal

func (e *Msgpack) Unmarshal(value *[]byte, ref interface{}) error

Jump to

Keyboard shortcuts

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