File tree Expand file tree Collapse file tree 1 file changed +31
-6
lines changed Expand file tree Collapse file tree 1 file changed +31
-6
lines changed Original file line number Diff line number Diff line change 1
1
# Eppo SDK for Golang
2
2
3
- ## Building
3
+ Eppoclient is a client sdk for ` eppo.cloud ` randomization API.
4
+ It is used to retrieve the experiments data and put it to in-memory cache, and then get assignments information.
4
5
5
- ```
6
- make build
7
- ```
6
+ ## Getting Started
7
+
8
+ Refer to our [ SDK documentation] ( https://docs.geteppo.com/prerequisites/feature-flagging/randomization-sdk/ ) for how to install and use the SDK.
9
+
10
+ ## Supported Python Versions
11
+ This version of the SDK is compatible with Python 3.6 and above.
12
+
13
+ ## Example
8
14
9
- ## Running tests
10
15
11
16
```
12
- make test
17
+ import (
18
+ "github.com/Eppo-exp/golang-sdk/eppoclient"
19
+ )
20
+
21
+ var eppoClient = &eppoclient.EppoClient{}
22
+
23
+ func main() {
24
+ eppoClient = eppoclient.InitClient(eppoclient.Config{
25
+ ApiKey: "<your_api_key>",
26
+ BaseUrl: "<base_url>", // optional, default https://eppo.cloud/api
27
+ AssignmentLogger: eppoclient.AssignmentLogger{},
28
+ })
29
+ }
30
+
31
+ func someBLFunc() {
32
+ assignment, _ := eppoClient.GetAssignment("subject-1", "experiment_5", sbjAttrs)
33
+
34
+ if assigment == "control" {
35
+ // do something
36
+ }
37
+ }
13
38
```
You can’t perform that action at this time.
0 commit comments