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.6.0 (latest)
Published
Jun 30, 2025
Platform
linux/amd64
Last checked
5 days ago

Tools for package owners.