codec

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Accept = "Accept"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

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

func NewDecoder

func NewDecoder(r *http.Request) Decoder

func NewJSONDecoder

func NewJSONDecoder(r io.Reader) Decoder

type Encoder

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

func NewEncoder

func NewEncoder(w http.ResponseWriter) Encoder

func NewJSONEncoder

func NewJSONEncoder(w io.Writer) Encoder

Jump to

Keyboard shortcuts

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