encodingjson

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: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultCodec = Codec{}

Functions

This section is empty.

Types

type Codec

type Codec struct{}

Codec implements https://pkg.go.dev/encoding/json

func (Codec) Marshal

func (Codec) Marshal(v any) ([]byte, error)

func (Codec) NewDecoder

func (Codec) NewDecoder(r io.Reader) *json.Decoder

func (Codec) NewEncoder

func (Codec) NewEncoder(w io.Writer) *json.Encoder

func (Codec) Unmarshal

func (Codec) Unmarshal(data []byte, v any) error

type Decoder

type Decoder = json.Decoder

type Encoder

type Encoder = json.Encoder

type Marshaler

type Marshaler = json.Marshaler

type Unmarshaler

type Unmarshaler = json.Unmarshaler

Jump to

Keyboard shortcuts

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