Skip to content

Add hello-world example for cedar-go#267

Open
Seth-jo wants to merge 5 commits intocedar-policy:release/4.10.xfrom
Seth-jo:feature/cedar-go-hello-world
Open

Add hello-world example for cedar-go#267
Seth-jo wants to merge 5 commits intocedar-policy:release/4.10.xfrom
Seth-jo:feature/cedar-go-hello-world

Conversation

@Seth-jo
Copy link
Copy Markdown

@Seth-jo Seth-jo commented Mar 31, 2026

Issue #, if available:
cedar-go #106

Description of changes:
This PR introduces a new hello-world example that demonstrates the usage of cedar-go, using version 1.6 of the package.

It mirrors a similar structure to other hello-world examples in the repository, focusing on showcasing the usage within an application. This includes:

  • Parsing policies
  • Entity and request construction
  • Evaluation of authorization requests.

The PR includes the following files:

  • main.go
  • go.mod and go.sum
  • README.md

It also updates the central README to reference the new directory

Note

I wasn't sure if the CI pipeline would need this adding and if so, whether it should be in this PR.

@Seth-jo Seth-jo force-pushed the feature/cedar-go-hello-world branch from 8f95fda to 83525dd Compare March 31, 2026 09:02
Seth-jo added 5 commits March 31, 2026 10:02
Signed-off-by: seth-jo <gbdjohnson@gmail.com>
Signed-off-by: seth-jo <gbdjohnson@gmail.com>
Signed-off-by: seth-jo <gbdjohnson@gmail.com>
Signed-off-by: seth-jo <gbdjohnson@gmail.com>
Signed-off-by: seth-jo <gbdjohnson@gmail.com>
@Seth-jo Seth-jo force-pushed the feature/cedar-go-hello-world branch from 83525dd to f4e67b8 Compare March 31, 2026 09:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant