redact

package
v0.28.0 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2025 License: MPL-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SerializeAndRedactJSON

func SerializeAndRedactJSON(resource any, redactFields []string) (string, error)

SerializeAndRedactJSON serializes a resource to JSON and redacts specified fields. Supports nested field paths using dot notation (e.g., "Kitchen.Bowl.Fruit")

func SerializeAndRedactXML

func SerializeAndRedactXML(resource any, redactFields []string) (string, error)

SerializeAndRedactXML serializes a resource to XML and redacts specified fields. Supports nested field paths using dot notation (e.g Parent.Child.Grandchild)

Types

This section is empty.

Jump to

Keyboard shortcuts

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