pjson

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package pjson implements a parallelized wrapper for encoding and decoding json objects.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Decode

func Decode[T any](ctx context.Context, dest []T, src func(i int) []byte) error

Decode a source of JSON bytes into a target slice in a parallel manner.

func Encode

func Encode[T any](ctx context.Context, dest [][]byte, src func(i int) T) error

Encode objects into a target slice in a parallel manner.

Types

This section is empty.

Jump to

Keyboard shortcuts

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