serialize

package
v1.0.11 Latest Latest
Warning

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

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

Documentation

Overview

Package serialize is used gob to serialize object

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(r io.Reader, val interface{}) error

func DecodeBytes

func DecodeBytes(b []byte, val interface{}) error

func Encode

func Encode(w io.Writer, val interface{}) error

func EncodeToBytes

func EncodeToBytes(val interface{}) ([]byte, error)

Types

type Encoder

type Encoder interface {
	Encode(io.Writer) error
}

Jump to

Keyboard shortcuts

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