pjson

package
v0.0.0-...-4dcfcdd Latest Latest
Warning

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

Go to latest
Published: May 2, 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