scrub

package
v1.46.11 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: MPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSON

func JSON(input []byte, paths []Path, replaceWith []byte) (scrubbed []byte)

JSON scrubs the input JSON data, substituting values at the given paths with replaceWith.

It returns the scrubbed data. If no substitutions were made scrubbed is the same slice as input.

Types

type Bounds

type Bounds struct {
	From, To int
}

func