You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. module should be policy string above
2. pass context instance for .Eval
also add decision output in the example
Fixesopen-policy-agent#2367
Signed-off-by: Gaga Pan <gaga5lala1013@gmail.com>
The Go integration section in https://github.com/open-policy-agent/opa/blob/master/docs/content/integration.md contains two errors in the example code:
module
is not defined anywhere.module
should be defined as a string variable that contains the example policy from earlier in the page.context.Context
should just be `ctx.The text was updated successfully, but these errors were encountered: