jjson

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Dec 23, 2024 License: Unlicense Imports: 6 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() *bytes.Buffer

Get 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 NewPool added in v0.3.13

func NewPool() *pool

New returns a new object of the Buffers Pool

func PutBuf added in v0.3.13

func PutBuf(buf *bytes.Buffer)

Put resets and puts back a given buffer to the pool

func Unmarshal

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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