Help us shape the future of Go! Take the 2026 Go Developer Survey

serializer

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2026 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 JSONSerializer

type JSONSerializer struct{}
var JSON JSONSerializer

func (JSONSerializer) Deserialize

func (s JSONSerializer) Deserialize(b []byte, val interface{}) error

func (JSONSerializer) Serialize

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

type MsgPackSerializer added in v1.0.0

type MsgPackSerializer struct{}
var MsgPack MsgPackSerializer

func (MsgPackSerializer) Deserialize added in v1.0.0

func (s MsgPackSerializer) Deserialize(b []byte, val interface{}) error

func (MsgPackSerializer) Serialize added in v1.0.0

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

type Serializer

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

Jump to

Keyboard shortcuts

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