package deepcopy
import "github.com/open-policy-agent/opa/internal/deepcopy"
Index ¶
- func DeepCopy(val interface{}) interface{}
- func Map(val map[string]interface{}) map[string]interface{}
Functions ¶
func DeepCopy ¶
func DeepCopy(val interface{}) interface{}
DeepCopy performs a recursive deep copy for nested slices/maps and returns the copied object. Supports []interface{} and map[string]interface{} only
func Map ¶
Source Files ¶
- Version
- v1.4.2 (latest)
- Published
- May 2, 2025
- Platform
- linux/amd64
- Last checked
- 6 hours ago –
Tools for package owners.