encoding

package
v2.0.4 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByteEncoder

type ByteEncoder struct{}

func (ByteEncoder) Decode

func (b ByteEncoder) Decode(data []byte) (interface{}, error)

func (ByteEncoder) Encode

func (b ByteEncoder) Encode(v interface{}) ([]byte, error)

type Encoder

type Encoder interface {
	Encode(v interface{}) ([]byte, error)
	Decode(data []byte) (interface{}, error)
}

type Err

type Err struct {
	Err error
}

func (Err) Error

func (err Err) Error() string

type FloatEncoder

type FloatEncoder struct{}

func (FloatEncoder) Decode

func (b FloatEncoder) Decode(data []byte) (interface{}, error)

func (FloatEncoder) Encode

func (b FloatEncoder) Encode(v interface{}) ([]byte, error)

type IntEncoder

type IntEncoder struct{}

func (IntEncoder) Decode

func (b IntEncoder) Decode(data []byte) (interface{}, error)

func (IntEncoder) Encode

func (b IntEncoder) Encode(data interface{}) ([]byte, error)

type NoopEncoder

type NoopEncoder struct{}

func (NoopEncoder) Decode

func (_ NoopEncoder) Decode(_ []byte) (interface{}, error)

func (NoopEncoder) Encode

func (_ NoopEncoder) Encode(_ interface{}) ([]byte, error)

type StringEncoder

type StringEncoder struct{}

func (StringEncoder) Decode

func (b StringEncoder) Decode(data []byte) (interface{}, error)

func (StringEncoder) Encode

func (b StringEncoder) Encode(v interface{}) ([]byte, error)

Jump to

Keyboard shortcuts

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