gob

package
v2.2.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeGob

func DecodeGob(data []byte, v any) error

DecodeGob deserializes a gob-encoded byte slice into the provided target variable `v`. The target `v` must be a pointer to the expected type. Returns an error if decoding fails or types mismatch.

func EncodeGob

func EncodeGob(data any) ([]byte, error)

EncodeGob serializes the given data into a byte slice using the Go gob encoding. The data can be any Go value, but the underlying type must be registered or gob-encodable. Returns the serialized byte slice or an error if encoding fails.

Types

This section is empty.

Jump to

Keyboard shortcuts

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