encoding

package
v1.290.1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 License: MIT Imports: 7 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

Module for fx.

Functions

This section is empty.

Types

type Encoder added in v1.282.0

type Encoder interface {
	// Encode any to a writer.
	Encode(w io.Writer, e any) error

	// Decode any from a reader.
	Decode(r io.Reader, e any) error
}

Encoder allows different types of encoding/decoding.

type Map

type Map struct {
	// contains filtered or unexported fields
}

Map of encoding.

func NewMap

func NewMap() *Map

NewMap for encoding.

func (*Map) Get

func (f *Map) Get(kind string) Encoder

Get from kind.

func (*Map) Register

func (f *Map) Register(kind string, enc Encoder)

Register kind and encoder.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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