encoding

package
v0.0.0-...-d51cab7 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JSONEncoding

type JSONEncoding struct{}

func NewJSONEncoding

func NewJSONEncoding() *JSONEncoding

func (*JSONEncoding) Decode

func (e *JSONEncoding) Decode(input []byte, output any) error

func (*JSONEncoding) DecodeReader

func (e *JSONEncoding) DecodeReader(input io.Reader, output any) error

func (*JSONEncoding) Encode

func (e *JSONEncoding) Encode(v any) ([]byte, error)

type TOMLEncoding

type TOMLEncoding struct{}

func NewTOMLEncoding

func NewTOMLEncoding() *TOMLEncoding

func (*TOMLEncoding) Decode

func (e *TOMLEncoding) Decode(input []byte, output any) error

func (*TOMLEncoding) DecodeReader

func (e *TOMLEncoding) DecodeReader(input io.Reader, output any) error

func (*TOMLEncoding) Encode

func (e *TOMLEncoding) Encode(v any) ([]byte, error)

Jump to

Keyboard shortcuts

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