pickle

package
v0.0.0-...-2f3b49c Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2018 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

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

func PickleDumps

func PickleDumps(o interface{}) []byte

func PickleLoads

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

func Unmarshal

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

Unmarshal parses the pickled data and stores the result in the value pointed to by v. Unmarshal is considerably less performant than PickleLoads, so think twice before using it in performance-sensitive code.

Types

type PickleArray

type PickleArray struct {
	Type string
	Data []interface{}
}

type PickleTuple

type PickleTuple struct {
	Len int
	A   interface{}
	B   interface{}
	C   interface{}
	D   interface{}
}

Jump to

Keyboard shortcuts

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