Skip to content

Commit

Permalink
fix: fix go sdk instructions (#253)
Browse files Browse the repository at this point in the history
* fix go sdk instructions

* update run application cmd
  • Loading branch information
k3llymariee authored May 8, 2024
1 parent 7d54823 commit 2fe1c8a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions internal/sdks/sdk_instructions/go.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ mkdir hello-go && cd hello-go
go mod init example/hello-go
```

3. Next, install the SDK (SDK v6 requires go 1.18+):
3. Next, install the SDK (SDK v7 requires go 1.18+):
```shell
go get github.com/launchdarkly/go-server-sdk/v6
go get github.com/launchdarkly/go-server-sdk/v7
```

4. Create a file called main.go and add the following code:
Expand Down Expand Up @@ -99,9 +99,9 @@ func main() {

Now that your application is ready, run the application to see what value we get.
```shell
go build && ./hello-go
go build && LAUNCHDARKLY_SDK_KEY='1234567890abcdef' ./hello-go
```

You should see:

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

0 comments on commit 2fe1c8a

Please sign in to comment.