encoding

package
v0.74.0 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2025 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package encoding provides abstractions for supporting concrete encoding implementations.

Index

Constants

View Source
const (
	// AcceptHeader definition.
	AcceptHeader string = "Accept"
	// ContentTypeHeader definition.
	ContentTypeHeader string = "Content-Type"
	// ContentEncodingHeader definition.
	ContentEncodingHeader string = "Content-Encoding"
	// ContentLengthHeader definition.
	ContentLengthHeader string = "Content-Length"
	// AcceptEncodingHeader definition, 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 definition that supports a reader.

type DecodeRawFunc added in v0.4.0

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

DecodeRawFunc definition that supports byte slices.

type EncodeFunc added in v0.4.0

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

EncodeFunc definition that returns a byte slice.

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