opa: github.com/open-policy-agent/opa/internal/merge Index | Files

package merge

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

Package merge contains helpers to merge data structures frequently encountered in OPA.


Package Files


func InterfaceMaps Uses

func InterfaceMaps(a map[string]interface{}, b map[string]interface{}) (c map[string]interface{}, ok bool)

InterfaceMaps returns the result of merging a and b. If a and b cannot be merged because of conflicting key-value pairs, ok is false.

Package merge is imported by 4 packages. Updated 2019-09-21. Refresh now. Tools for package owners.