-
-
Notifications
You must be signed in to change notification settings - Fork 686
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
chore: update go sdk examples #8145
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Dependency Review✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.OpenSSF Scorecard
Scanned Manifest Files |
@@ -40,6 +40,8 @@ const unleash = initialize({ | |||
`, | |||
Go: `import ( | |||
"github.com/Unleash/unleash-client-go/v3" | |||
"net/http" |
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.
These imports will be added be go/idea anyways, so I will add it myself.
@@ -48,6 +50,7 @@ func init() { | |||
unleash.WithAppName("unleash-onboarding-golang"), | |||
unleash.WithUrl("<YOUR_API_URL>"), | |||
unleash.WithCustomHeaders(http.Header{"Authorization": {"<YOUR_API_TOKEN>"}}), | |||
unleash.WithMetricsInterval(5*time.Second), |
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.
Make them the same interval as node example
@@ -192,7 +195,13 @@ export const checkFlagCodeSnippets: Record<SdkName, string> = { | |||
console.log('Is enabled', unleash.isEnabled('<YOUR_FLAG>')); | |||
}, 1000); | |||
`, | |||
Go: ``, | |||
Go: `func main() { |
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.
Same for cycle as node.
No description provided.