MCPcopy Create free account
hub / github.com/aws-samples/devsecops-quickstart / Merge

Function Merge

devsecops_quickstart/opa_scan/pkg/utils/utils.go:13–15  ·  view source on GitHub ↗

Merge recursively merges the src and dst maps. Key conflicts are resolved by preferring src, or recursively descending, if both src and dst are maps.

(dst, src map[string]interface{})

Source from the content-addressed store, hash-verified

11// Merge recursively merges the src and dst maps. Key conflicts are resolved by
12// preferring src, or recursively descending, if both src and dst are maps.
13func Merge(dst, src map[string]interface{}) map[string]interface{} {
14 return merge(dst, src, 0)
15}
16
17func merge(dst, src map[string]interface{}, depth int) map[string]interface{} {
18 if depth > MaxDepth {

Callers

nothing calls this directly

Calls 1

mergeFunction · 0.85

Tested by

no test coverage detected