encoding

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2019 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AcceptHeader for defining accept encoding.
	AcceptHeader string = "Accept"
	// ContentTypeHeader for defining content type headers.
	ContentTypeHeader string = "Content-Type"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DecodeFunc added in v0.4.0

type DecodeFunc func(data io.Reader, v interface{}) error

DecodeFunc function definition of a JSON decoding function.

type DecodeRawFunc added in v0.4.0

type DecodeRawFunc func(data []byte, v interface{}) error

DecodeRawFunc function definition of a JSON decoding function from a byte slice.

type EncodeFunc added in v0.4.0

type EncodeFunc func(v interface{}) ([]byte, error)

EncodeFunc function definition of a JSON encoding function.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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