jjson

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: Unlicense Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode(r io.Reader, v any) error

func Encode

func Encode(w io.Writer, v any) error

func GetBuf added in v0.3.13

func GetBuf() *bytebufferpool.ByteBuffer

GetBuf returns a buffer from the pool or creates a new one

func Marshal

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

func MarshalAndEncode added in v0.3.13

func MarshalAndEncode(w io.Writer, v any) error

func PutBuf added in v0.3.13

func PutBuf(buf *bytebufferpool.ByteBuffer)

PutBuf puts back a given buffer to the pool

func Unmarshal

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

Types

This section is empty.

Source Files

  • json.go
  • pool.go

Jump to

Keyboard shortcuts

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