Skip to content

feat: add Go hello world verification example#99

Open
LoikStyle wants to merge 1 commit into
aporthq:mainfrom
LoikStyle:feat/hello-aport-go
Open

feat: add Go hello world verification example#99
LoikStyle wants to merge 1 commit into
aporthq:mainfrom
LoikStyle:feat/hello-aport-go

Conversation

@LoikStyle
Copy link
Copy Markdown

Summary

  • Adds examples/hello-world/go/main.go, a minimal standard-library-only Go example for APort verification.
  • Documents how to run it and configure APORT_API_KEY, APORT_AGENT_ID, APORT_POLICY_ID, and APORT_BASE_URL.
  • Prints the allow result and response reasons from /api/verify/policy/{policy}.

Test Plan

  • Static checked the Go source for the expected standard-library request, response decoding, and output paths.
  • go/gofmt are not installed in this environment, so live compilation could not be run here.

Closes #27

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.

[Hacktoberfest] Create a "Hello, APort!" Example in Go

1 participant