marshaler

package
v0.0.0-...-692e367 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	Decode(v interface{}) error
}

type DecoderFunc

type DecoderFunc func(v interface{}) error

func (DecoderFunc) Decode

func (f DecoderFunc) Decode(v interface{}) error

type Delimited

type Delimited interface {
	Delimiter() []byte
}

type Encoder

type Encoder interface {
	Encode(v interface{}) error
}

type EncoderFunc

type EncoderFunc func(v interface{}) error

func (EncoderFunc) Encode

func (f EncoderFunc) Encode(v interface{}) error

type Marshaler

type Marshaler interface {
	Marshal(v interface{}) ([]byte, error)
	Unmarshal(data []byte, v interface{}) error
	NewDecoder(r io.Reader) Decoder
	NewEncoder(w io.Writer) Encoder
	ContentType() string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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