codex

package
v0.0.0-...-aa333c5 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2016 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codex

type Codex interface {
	MIME() string

	Marshaller
	Unmarshaller
	Transmarshaller
}

type JSONCodex

type JSONCodex struct{}

func (JSONCodex) MIME

func (c JSONCodex) MIME() string

func (JSONCodex) Marshal

func (c JSONCodex) Marshal(value interface{}) (data []byte, err error)

func (JSONCodex) Transmarshal

func (c JSONCodex) Transmarshal(encoding Codex, input []byte) (result []byte, err error)

func (JSONCodex) Unmarshal

func (c JSONCodex) Unmarshal(data []byte, value interface{}) (err error)

type Marshaller

type Marshaller interface {
	Marshal(value interface{}) (data []byte, err error)
}

type Transmarshaller

type Transmarshaller interface {
	Transmarshal(encoding Codex, input []byte) (result []byte, err error)
}

type Unmarshaller

type Unmarshaller interface {
	Unmarshal(data []byte, value interface{}) (err error)
}

Jump to

Keyboard shortcuts

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