serialization

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSON

type JSON struct {
	Serializer
}

func NewJSON

func NewJSON() JSON

func (JSON) Deserialize

func (JSON) Deserialize(bytes []byte) (*interface{}, error)

func (JSON) Serialize

func (JSON) Serialize(value interface{}) ([]byte, error)

type Serializer

type Serializer interface {
	Serialize(value interface{}) ([]byte, error)
	Deserialize([]byte) (*interface{}, error)
}

Jump to

Keyboard shortcuts

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