-
-
Notifications
You must be signed in to change notification settings - Fork 721
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Go tutorial 🐿️ #8904
base: main
Are you sure you want to change the base?
Go tutorial 🐿️ #8904
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Files |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! 🚀 Left some suggestions to align with the style guide. Please use up-to-date screenshots 🙏 (also with better aspect ratio if possible). Let me know if you need help
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very consistent casing 🤓
website/docs/feature-flag-tutorials/golang/implementing-feature-flags-golang.md
Outdated
Show resolved
Hide resolved
website/docs/feature-flag-tutorials/golang/implementing-feature-flags-golang.md
Outdated
Show resolved
Hide resolved
website/docs/feature-flag-tutorials/golang/implementing-feature-flags-golang.md
Outdated
Show resolved
Hide resolved
website/docs/feature-flag-tutorials/golang/implementing-feature-flags-golang.md
Outdated
Show resolved
Hide resolved
|
||
## 4. Add the GraphQL endpoint | ||
|
||
The point of this tutorial is to mimic a real-world scenario where, based on a boolean feature flag, you would migrate from a REST API to a GraphQL one. So far, we've just used REST. Now, let's add the GraphQL version. The GraphQL endpoint is `https://countries.trevorblades.com/` (Thanks Trevor!). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we introduce the GraphQL API we're using at the same time as we introduce the REST API?
|
||
Now, let's add our client to our project, grab the feature flag from Unleash, and update our conditional statement. Don't forget to also update the config with your API key: | ||
|
||
```diff |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How is this supposed to render? I don't think it works at the moment
website/docs/feature-flag-tutorials/golang/implementing-feature-flags-golang.md
Outdated
Show resolved
Hide resolved
website/docs/feature-flag-tutorials/golang/implementing-feature-flags-golang.md
Outdated
Show resolved
Hide resolved
website/docs/feature-flag-tutorials/golang/implementing-feature-flags-golang.md
Outdated
Show resolved
Hide resolved
|
||
## 5. Add Unleash to your Go app | ||
|
||
Now, let's connect our project to Unleash so that you can toggle that feature flag at runtime. If you wanted to, you could also do a gradual rollout, use it for a/b testing, etc. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if linking to the gradual rollout process or a/b testing would be good here.
website/docs/feature-flag-tutorials/golang/implementing-feature-flags-golang.md
Show resolved
Hide resolved
Co-authored-by: Melinda Fekete <[email protected]> Co-authored-by: Nnenna Ndukwe <[email protected]>
And examples 😄