Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Encodings = make([]func() EncodingFunc, maxEncoding)
)
Functions ¶
func RegisterEncoding ¶
func RegisterEncoding(e Encoding, f func() EncodingFunc) error
RegisterEncoding registers a function that returns a new instance of the given Encoding function. This is intended to be called from the init function in packages that implement Encoding functions.
Types ¶
type Encoding ¶
type Encoding uint
func (Encoding) Available ¶
Available reports whether the given Encoding function is linked into the binary.
func (Encoding) EncodingFunc ¶
func (Encoding) New ¶
func (e Encoding) New() EncodingFunc
New returns a new Encoding.Encoding calculating the given Encoding function. New returns nil if the Encoding function is not linked into the binary.
type EncodingFunc ¶
Click to show internal directories.
Click to hide internal directories.