io

package
v0.1.0-rc8 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPacker

func NewPacker() *packer

Types

type Decoder

type Decoder interface {
	Decode(any) error
}

type Encoder

type Encoder interface {
	Encode(any) error
}

type Input

type Input interface {
	io.Reader
	Name() string
}

type Output

type Output interface {
	io.Writer
	Name() string
}

type Packer

type Packer interface {
	Register(func(io.Writer) Encoder, func(io.Reader) Decoder, ...string)
	Pack(Output, any) error
	Unpack(Input, any) error
}

type Reader

type Reader = io.Reader

type Writer

type Writer = io.Writer

Jump to

Keyboard shortcuts

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