Skip to content

Commit f6bd743

Browse files
authored
docs(GOFF): update examples in the readme (#612)
1 parent 4077d5a commit f6bd743

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

providers/go-feature-flag/README.md

+9-9
Original file line numberDiff line numberDiff line change
@@ -70,15 +70,15 @@ This code block explain how you can create an `EvaluationContext` and use it to
7070
7171
```go
7272
evaluationCtx := of.NewEvaluationContext(
73-
"1d1b9238-2591-4a47-94cf-d2bc080892f1",
74-
map[string]interface{}{
75-
"firstname", "john",
76-
"lastname", "doe",
77-
"email", "[email protected]",
78-
"admin", true,
79-
"anonymous", false,
80-
})
81-
adminFlag, _ := client.BoolValue(context.TODO(), "flag-only-for-admin", false, evaluationCtx)
73+
"1d1b9238-2591-4a47-94cf-d2bc080892f1",
74+
map[string]interface{}{
75+
"firstname": "john",
76+
"lastname": "doe",
77+
"email": "[email protected]",
78+
"admin": true,
79+
"anonymous": false,
80+
})
81+
adminFlag, _ := client.BooleanValue(context.TODO(), "flag-only-for-admin", false, evaluationCtx)
8282
if adminFlag {
8383
// flag "flag-only-for-admin" is true for the user
8484
} else {

0 commit comments

Comments
 (0)