io

package
v0.0.0-...-c877a14 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2014 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultCsvEncoderNamespace string = "csv"
)

Variables

This section is empty.

Functions

func JsonDecoder

func JsonDecoder(create func() g.Any) jsonDecoder

func XmlDecoder

func XmlDecoder(create func() g.Any) xmlDecoder

Types

type CsvEncoder

type CsvEncoder struct{}

func (CsvEncoder) Encode

func (e CsvEncoder) Encode(a g.Any) g.Either

func (CsvEncoder) Generate

func (e CsvEncoder) Generate(x g.Any) g.Either

func (CsvEncoder) Keys

func (e CsvEncoder) Keys(a g.Any) g.Either

type Decoder

type Decoder interface {
	Keys() g.Either
	Decode(a []byte) g.Either
}

type Encoder

type Encoder interface {
	Encode(g.Any) g.Either
	Keys(g.Any) g.Either
	Generate(g.Any) g.Either
}

type HtmlEncoder

type HtmlEncoder struct {
	Template string
}

func (HtmlEncoder) Encode

func (e HtmlEncoder) Encode(a g.Any) g.Either

func (HtmlEncoder) Generate

func (e HtmlEncoder) Generate(x g.Any) g.Either

func (HtmlEncoder) Keys

func (e HtmlEncoder) Keys(a g.Any) g.Either

type JsonEncoder

type JsonEncoder struct{}

func (JsonEncoder) Encode

func (e JsonEncoder) Encode(a g.Any) g.Either

func (JsonEncoder) Generate

func (e JsonEncoder) Generate(x g.Any) g.Either

func (JsonEncoder) Keys

func (e JsonEncoder) Keys(a g.Any) g.Either

type TextEncoder

type TextEncoder struct {
	Template string
}

func (TextEncoder) Encode

func (e TextEncoder) Encode(a g.Any) g.Either

func (TextEncoder) Generate

func (e TextEncoder) Generate(x g.Any) g.Either

func (TextEncoder) Keys

func (e TextEncoder) Keys(a g.Any) g.Either

type XmlEncoder

type XmlEncoder struct{}

func (XmlEncoder) Encode

func (e XmlEncoder) Encode(a g.Any) g.Either

func (XmlEncoder) Generate

func (e XmlEncoder) Generate(x g.Any) g.Either

func (XmlEncoder) Keys

func (e XmlEncoder) Keys(a g.Any) g.Either

Jump to

Keyboard shortcuts

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