codec

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2025 License: MIT Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Codec

type Codec interface {
	Marshaler
	Unmarshaler
}
var (
	GoogleProto Codec = googleproto.DefaultCodec
	GoYaml      Codec = goyaml.DefaultCodec
	Json        Codec = json.DefaultCodec
)

type Decoder

type Decoder interface {
	Decode(v any) error
}

type Encoder

type Encoder interface {
	Encode(v any) error
}

type Marshaler

type Marshaler interface {
	Marshal(v any) ([]byte, error)
}

type Unmarshaler added in v0.4.1

type Unmarshaler interface {
	Unmarshal(data []byte, v any) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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