bin

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2019 License: MIT Imports: 2 Imported by: 0

README

bin

Binary un/serializer.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(v interface{})

Register is registering a new data structure.

func Serialize

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

Serialize is encoding an object into bytes binary format.

func Unserialize

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

Unserialize is decoding bytes into object.

Types

type Serializer

type Serializer interface {
	Serialize([]byte, error)
}

Serializer interface.

type Unserializer

type Unserializer interface {
	Unserialize(interface{}) error
}

Unserializer interface.

Jump to

Keyboard shortcuts

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