json

package
v0.11.35 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2024 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

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

func MarshalIndent

func MarshalIndent(v any, prefix, indent string) ([]byte, error)

func Unmarshal

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

Types

type Marshaler

type Marshaler struct{}

func NewMarshaler

func NewMarshaler() Marshaler

func (Marshaler) Marshal

func (jm Marshaler) Marshal(m any) ([]byte, error)

func (Marshaler) Unmarshal

func (jm Marshaler) Unmarshal(data []byte, m any) error

type RawMessage

type RawMessage = json.RawMessage

Jump to

Keyboard shortcuts

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