Skip to content

Commit 69d31fe

Browse files
authored
docs: use shorthand eval syntax (#331)
Signed-off-by: Michael Beemer <beeme1mr@users.noreply.github.com>
1 parent 63de64a commit 69d31fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ func main() {
7171
// Create a new client
7272
client := openfeature.NewClient("app")
7373
// Evaluate your feature flag
74-
v2Enabled, _ := client.BooleanValue(
74+
v2Enabled := client.Boolean(
7575
context.Background(), "v2_enabled", true, openfeature.EvaluationContext{},
7676
)
7777
// Use the returned flag value
@@ -81,7 +81,7 @@ func main() {
8181
}
8282
```
8383

84-
Try this example in the [Go Playground](https://go.dev/play/p/3v6jbaGGldA).
84+
Try this example in the [Go Playground](https://go.dev/play/p/k0wqE8LPdR_X).
8585

8686
### API Reference
8787

0 commit comments

Comments
 (0)