serialize

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrSerializeNilValue    = errors.New("cannot serialize nil value")
	ErrDeserializeEmptyData = errors.New("cannot deserialize empty data")
	ErrDeserializeResultNil = errors.New("result interface cannot be nil")
)

Functions

func Deserialize

func Deserialize(data []byte, resultPtr interface{}) error

Deserialize converts []byte to a value using Gob decoding.

func Serialize

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

Serialize converts a value to []byte using Gob encoding.

Types

This section is empty.

Jump to

Keyboard shortcuts

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