Help us shape the future of Go! Take the 2026 Go Developer Survey

codec

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec interface {
	RegisterType(interface{}) error
	Marshal(interface{}) ([]byte, error)
	Unmarshal([]byte, interface{}) error
}

Codec marshals and unmarshals

func New

func New(maxSize, maxSliceLen int) Codec

New returns a new codec

func NewDefault

func NewDefault() Codec

NewDefault returns a new codec with reasonable default values

Jump to

Keyboard shortcuts

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