encoding

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package encoding provides abstractions for concrete encoding implementations.

Index

Constants

View Source
const (
	// AcceptHeader for defining accept encoding.
	AcceptHeader string = "Accept"
	// ContentTypeHeader for defining content type headers.
	ContentTypeHeader string = "Content-Type"
	// ContentEncodingHeader for defining content encoding headers.
	ContentEncodingHeader string = "Content-Encoding"
	// AcceptEncodingHeader for defining accept encoding headers, usually a compression algorithm.
	AcceptEncodingHeader string = "Accept-Encoding"
)

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
Package json is a concrete implementation of the encoding abstractions.
Package json is a concrete implementation of the encoding abstractions.
Package protobuf is a concrete implementation of the encoding abstractions.
Package protobuf is a concrete implementation of the encoding abstractions.

Jump to

Keyboard shortcuts

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