package deepcopy

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

Index

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

func Map(val map[string]interface{}) map[string]interface{}

Source Files

deepcopy.go

Version
v0.50.0
Published
Mar 10, 2023
Platform
js/wasm
Last checked
56 seconds ago

Tools for package owners.