encoding

package
v0.0.0-...-49c4daf Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BinaryDecoder

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

func NewBinaryDecoder

func NewBinaryDecoder(r io.Reader) *BinaryDecoder

func (*BinaryDecoder) Decode

func (dec *BinaryDecoder) Decode(v any) error

type BinaryEncoder

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

func NewBinaryEncoder

func NewBinaryEncoder(w io.Writer) *BinaryEncoder

func (*BinaryEncoder) Encode

func (enc *BinaryEncoder) Encode(v any) error

type Decoder

type Decoder interface {
	Decode(v any) error
}

type DecoderFunc

type DecoderFunc func(io.Reader) Decoder

func NewDecoderFuncBinary

func NewDecoderFuncBinary() DecoderFunc

func NewDecoderFuncJSON

func NewDecoderFuncJSON() DecoderFunc

func NewDecoderFuncText

func NewDecoderFuncText() DecoderFunc

func NewDecoderFuncXML

func NewDecoderFuncXML() DecoderFunc

type Encoder

type Encoder interface {
	Encode(v any) error
}

type EncoderFunc

type EncoderFunc func(io.Writer) Encoder

func NewEncoderFuncBinary

func NewEncoderFuncBinary() EncoderFunc

func NewEncoderFuncJSON

func NewEncoderFuncJSON() EncoderFunc

func NewEncoderFuncText

func NewEncoderFuncText() EncoderFunc

func NewEncoderFuncXML

func NewEncoderFuncXML() EncoderFunc

type TextDecoder

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

func NewTextDecoder

func NewTextDecoder(r io.Reader) *TextDecoder

func (*TextDecoder) Decode

func (dec *TextDecoder) Decode(v any) error

type TextEncoder

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

func NewTextEncoder

func NewTextEncoder(w io.Writer) *TextEncoder

func (*TextEncoder) Encode

func (enc *TextEncoder) Encode(v any) error

Jump to

Keyboard shortcuts

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