oencoding

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListEncodings

func ListEncodings() []string

func RegisterEncoding

func RegisterEncoding(name string, enc Encoding)

Types

type Encoding

type Encoding interface {
	Encode(any) ([]byte, error)
	Decode([]byte, any) error
	MimeType() string
}

Encoding is an interface that defines the methods that an encoding type must implement. No encoding type is provided by this package.

func LookupEncoding

func LookupEncoding(name string) (Encoding, bool)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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