codec

package
v0.0.0-...-04ba3c9 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2014 License: MIT Imports: 6 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 {
	NewDecoder(io.Reader) Decoder
	NewEncoder(io.Writer) Encoder
}

type Decoder

type Decoder interface {
	Decode(v interface{}) error
}

type Encoder

type Encoder interface {
	Encode(v interface{}) error
}

type GOB

type GOB struct{}

func (GOB) NewDecoder

func (g GOB) NewDecoder(r io.Reader) Decoder

func (GOB) NewEncoder

func (g GOB) NewEncoder(r io.Writer) Encoder

type JSON

type JSON struct{}

func (JSON) NewDecoder

func (j JSON) NewDecoder(r io.Reader) Decoder

func (JSON) NewEncoder

func (j JSON) NewEncoder(r io.Writer) Encoder

type YAML

type YAML struct{}

func (YAML) NewDecoder

func (y YAML) NewDecoder(r io.Reader) Decoder

func (YAML) NewEncoder

func (y YAML) NewEncoder(w io.Writer) Encoder

Jump to

Keyboard shortcuts

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