Skip to content

Commit

Permalink
Update openfeature_go.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
thomaspoignant authored Oct 9, 2024
1 parent 5179a2a commit 0bb791c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ evaluationCtx := of.NewEvaluationContext(
"admin", true,
"anonymous", false,
})
adminFlag, _ := client.BoolValue(context.TODO(), "flag-only-for-admin", false, evaluationCtx)
adminFlag, _ := client.BooleanValue(context.TODO(), "flag-only-for-admin", false, evaluationCtx)
if adminFlag {
// flag "flag-only-for-admin" is true for the user
} else {
Expand All @@ -89,4 +89,4 @@ if adminFlag {
```

## Contribute to the provider
You can find the source of the provider in the [`open-feature/go-sdk-contrib`](https://github.com/open-feature/go-sdk-contrib/tree/main/providers/go-feature-flag) repository.
You can find the source of the provider in the [`open-feature/go-sdk-contrib`](https://github.com/open-feature/go-sdk-contrib/tree/main/providers/go-feature-flag) repository.

0 comments on commit 0bb791c

Please sign in to comment.