serializer

package
v0.0.0-...-0d53e84 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterSerializer

func RegisterSerializer(contentType string, s Serializer)

RegisterSerializer adds a new serializer

Types

type Serializer

type Serializer interface {
	Serialize(interface{}) ([]byte, error)
	Deserialize([]byte, interface{}) error
}

Serializer converst he format

func NewSerializer

func NewSerializer(contentType string) (Serializer, error)

NewSerializer returns the serializer from the given content type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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