You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -66,16 +66,16 @@ import (
66
66
vareppoClient = &eppoclient.EppoClient{}
67
67
68
68
variation:= eppoClient.GetStringAssignment(
69
-
'new-user-onboarding',
70
-
user.id,
71
-
user.attributes,
69
+
user.id,
70
+
'new-user-onboarding',
71
+
user.attributes,
72
72
'control'
73
73
);
74
74
```
75
75
76
76
## Assignment functions
77
77
78
-
Every Eppo flag has a return type that is set once on creation in the dashboard. Once a flag is created, assignments in code should be made using the corresponding typed function:
78
+
Every Eppo flag has a return type that is set once on creation in the dashboard. Once a flag is created, assignments in code should be made using the corresponding typed function:
79
79
80
80
```go
81
81
GetBooleanAssignment(...)
@@ -89,14 +89,14 @@ Each function has the same signature, but returns the type in the function name.
89
89
90
90
```go
91
91
funcgetBooleanAssignment(
92
-
flagKeystring,
93
-
subjectKeystring,
94
-
subjectAttributes map[string]interface{},
92
+
subjectKeystring,
93
+
flagKeystring,
94
+
subjectAttributes SubjectAttributes,
95
95
defaultValue string
96
96
) bool
97
97
```
98
98
99
-
## Assignment logger
99
+
## Assignment logger
100
100
101
101
If you are using the Eppo SDK for experiment assignment (i.e randomization), pass in a callback logging function to the `InitClient` function on SDK initialization. The SDK invokes the callback to capture assignment data whenever a variation is assigned.
0 commit comments