codec

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Nov 30, 2025 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Goccy        Codec = goccy.DefaultCodec
	GoogleProto  Codec = googleproto.DefaultCodec
	GoYaml       Codec = goyaml.DefaultCodec
	EncodingJson Codec = encodingjson.DefaultCodec

	Json     = EncodingJson
	Yaml     = Goccy
	Protobuf = GoogleProto
)

Functions

This section is empty.

Types

type Codec

type Codec interface {
	Marshaler
	Unmarshaler
}

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