json

package
v1.39.2 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2024 License: MIT Imports: 8 Imported by: 3

Documentation

Index

Constants

View Source
const (
	FullDateFormat = "2006-01-02T15:04:05.999Z07:00"
)

Variables

This section is empty.

Functions

func EncodeInto

func EncodeInto(w io.Writer, value any) error

func Marshal

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

func NewDecoder

func NewDecoder(r io.Reader) *jsoniter.Decoder

func NewEncoder

func NewEncoder(w io.Writer) *jsoniter.Encoder

func Unmarshal

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

Types

type RawMessage

type RawMessage = json.RawMessage

type TimeCodec

type TimeCodec struct {
	// contains filtered or unexported fields
}

func NewTimeCodec

func NewTimeCodec(format string) *TimeCodec

func (*TimeCodec) Decode

func (codec *TimeCodec) Decode(ptr unsafe.Pointer, iter *jsoniter.Iterator)

func (*TimeCodec) Encode

func (codec *TimeCodec) Encode(ptr unsafe.Pointer, stream *jsoniter.Stream)

func (*TimeCodec) IsEmpty

func (codec *TimeCodec) IsEmpty(ptr unsafe.Pointer) bool

Jump to

Keyboard shortcuts

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