package merge

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

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

Index

Functions

func InterfaceMaps

func InterfaceMaps(a map[string]any, b map[string]any) (map[string]any, 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.

Source Files

merge.go

Version
v1.5.1 (latest)
Published
Jun 4, 2025
Platform
js/wasm
Last checked
2 days ago

Tools for package owners.