jsonbudget

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package jsonbudget bounds current owned DTO collections before typed decoding.

Index

Constants

View Source
const (
	MaxArrayItems = 131_072
	MaxDepth      = 128
)

Variables

View Source
var (
	ErrInvalid  = errors.New("invalid owned JSON document")
	ErrExceeded = errors.New("owned JSON exceeds collection budget")
)

Functions

func Check

func Check(raw []byte, limit int) error

Check preserves native RawMessage leaves while counting current owned DTOs.

Types

This section is empty.

Jump to

Keyboard shortcuts

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