serde

package
v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidProtoMessage = errors.New("invalld proto message")
)

Functions

func DeserializeJSON

func DeserializeJSON(b []byte, i interface{}) error

func DeserializeProto

func DeserializeProto(b []byte, i interface{}) error

func SerializeJSON

func SerializeJSON(m interface{}) ([]byte, error)

func SerializeProto

func SerializeProto(m interface{}) ([]byte, error)

Types

type DeserializeFunc

type DeserializeFunc func(b []byte, i interface{}) error

type SerializeFunc

type SerializeFunc func(m interface{}) ([]byte, error)

Jump to

Keyboard shortcuts

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