Skip to content
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

fix: fix go sdk instructions #253

Merged
merged 2 commits into from
May 8, 2024
Merged

Conversation

k3llymariee
Copy link
Contributor

tried actually setting these up for the next demo day recording and noticed these were off. will let the quickstart team know also

```shell
go get github.com/launchdarkly/go-server-sdk/v6
go get github.com/launchdarkly/go-server-sdk/v7
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the file itself imports v7 below

@@ -99,9 +99,10 @@ func main() {

Now that your application is ready, run the application to see what value we get.
```shell
export LAUNCHDARKLY_SDK_KEY=1234567890abcdef
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the file gets the environment variable but we didn't actually set it anywhere. this could probably go at the top or here, doesn't matter much where

go build && ./hello-go
```

You should see:

`Feature flag my-flag-key is FALSE for this context`
`*** The 'my-flag-key' feature flag evaluates to false.`
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is actually what the logs say

@k3llymariee k3llymariee requested a review from dbolson May 8, 2024 21:55
Copy link
Contributor

@dbolson dbolson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like I missed these changes since they're already in the quickstart.

@k3llymariee k3llymariee merged commit 2fe1c8a into main May 8, 2024
2 checks passed
@k3llymariee k3llymariee deleted the kelly/fix-sdk-instructions branch May 8, 2024 23:22
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.

2 participants