encoding

package
v0.0.0-...-bcfd2cf Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2023 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GobMarshal

func GobMarshal(v interface{}) ([]byte, error)

GobMarshal takes an interface and encodes it in a bytes slice with gob

func GobUnmarshal

func GobUnmarshal(data []byte, v interface{}) (err error)

GobUnmarshal takes encoded bytes slice and decodes it in the passed interface with gob

func Marshal

func Marshal(v interface{}) ([]byte, error)

Marshal takes an interface and encodes it in a bytes slice

func Unmarshal

func Unmarshal(data []byte, v interface{}) (err error)

Unmarshal takes encoded bytes slice and decodes it in the passed interface

Types

This section is empty.

Jump to

Keyboard shortcuts

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