json

package
v1.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2024 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(v interface{}) ([]byte, error)

func Unmarshal

func Unmarshal(data []byte, v interface{}) error

func Valid added in v1.3.2

func Valid(data []byte) bool

Types

type GoccyImplementation added in v1.4.3

type GoccyImplementation struct{}

func (GoccyImplementation) Marshal added in v1.4.3

func (s GoccyImplementation) Marshal(v any) ([]byte, error)

func (GoccyImplementation) Unmarshal added in v1.4.3

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

func (GoccyImplementation) Valid added in v1.4.3

func (s GoccyImplementation) Valid(data []byte) bool

type Implementation added in v1.4.3

type Implementation interface {
	Marshal(v any) ([]byte, error)
	Unmarshal(data []byte, v any) error
	Valid(data []byte) bool
}

type SonicImplementation added in v1.4.3

type SonicImplementation struct{}

func (SonicImplementation) Marshal added in v1.4.3

func (s SonicImplementation) Marshal(v any) ([]byte, error)

func (SonicImplementation) Unmarshal added in v1.4.3

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

func (SonicImplementation) Valid added in v1.4.3

func (s SonicImplementation) Valid(data []byte) bool

type StandardImplementation added in v1.4.3

type StandardImplementation struct{}

func (StandardImplementation) Marshal added in v1.4.3

func (s StandardImplementation) Marshal(v any) ([]byte, error)

func (StandardImplementation) Unmarshal added in v1.4.3

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

func (StandardImplementation) Valid added in v1.4.3

func (s StandardImplementation) Valid(data []byte) bool

Jump to

Keyboard shortcuts

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