mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
d271cdfff8
Add rego.Data function to allow setting data directly from a map[string]any, providing a simpler alternative to using Store(inmem.NewFromObject(data)). This improves the Go SDK API by reducing boilerplate for the common case of using an in-memory store with static data. Fixes: #5961 Signed-off-by: majiayu000 <1835304752@qq.com>