package deepcopy

import "github.com/open-policy-agent/opa/internal/deepcopy"

Index

Functions

func DeepCopy

func DeepCopy(val any) any

DeepCopy performs a recursive deep copy for nested slices/maps and returns the copied object. Supports []any and map[string]any only

func Map

func Map(val map[string]any) map[string]any

Source Files

deepcopy.go

Version
v1.5.1 (latest)
Published
Jun 4, 2025
Platform
linux/amd64
Last checked
1 day ago

Tools for package owners.