gfserial

package
v0.0.0-...-3810ba9 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bytes

type Bytes []byte

func (*Bytes) FromMap

func (b *Bytes) FromMap(m map[string]interface{}) error

func (*Bytes) ToMap

func (b *Bytes) ToMap() (map[string]interface{}, error)

type GobSerializer

type GobSerializer struct{}

func (GobSerializer) Deserialize

func (GobSerializer) Deserialize(raw []byte, val interface{}) error

func (GobSerializer) Serialize

func (GobSerializer) Serialize(val interface{}) ([]byte, error)

type JsonSerializer

type JsonSerializer struct{}

func (JsonSerializer) Deserialize

func (JsonSerializer) Deserialize(raw []byte, val interface{}) error

func (JsonSerializer) Serialize

func (JsonSerializer) Serialize(val interface{}) ([]byte, error)

type Mapper

type Mapper interface {
	ToMap() (map[string]interface{}, error)
	FromMap(map[string]interface{}) error
}

Mapper 接口函数

type Serializable

type Serializable interface {
	Serialize() ([]byte, error)
	Deserialize([]byte) error
}

Serializable 接口函数

type Serializer

type Serializer interface {
	Serialize(val interface{}) ([]byte, error)
	Deserialize(raw []byte, val interface{}) error
}

Serializer 接口函数

Jump to

Keyboard shortcuts

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