Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试读取 rego 格式的策略并保存为 json 格式。但是找不到使用 rego 的“go”包阅读的方法。有什么建议/建议吗?
将 Rego 转换为 JSON 就像尝试将 GoLang 转换为 JSON。Rego 不是 JSON 的子集,因此这项任务并不容易。Rego 是一种自己的编程语言,具有许多无法用 JSON 轻松表达的内置特性和功能。
也许您可以定义您想要使用 JSON 数据完成的目标,并且可能有另一种解决方案?
干杯,彼得