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
+16-7Lines changed: 16 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,14 +22,14 @@ In your `go.mod`, add the SDK package as a dependency:
22
22
23
23
```
24
24
require (
25
-
github.com/Eppo-exp/golang-sdk/v5
25
+
github.com/Eppo-exp/golang-sdk/v6
26
26
)
27
27
```
28
28
29
29
Or you can install the SDK from the command line with:
30
30
31
31
```
32
-
go get github.com/Eppo-exp/golang-sdk/v5
32
+
go get github.com/Eppo-exp/golang-sdk/v6
33
33
```
34
34
35
35
## Quick start
@@ -40,7 +40,7 @@ Begin by initializing a singleton instance of Eppo's client. Once initialized, t
40
40
41
41
```go
42
42
import (
43
-
"github.com/Eppo-exp/golang-sdk/v5/eppoclient"
43
+
"github.com/Eppo-exp/golang-sdk/v6/eppoclient"
44
44
)
45
45
46
46
vareppoClient *eppoclient.EppoClient
@@ -62,7 +62,7 @@ func main() {
62
62
63
63
```go
64
64
import (
65
-
"github.com/Eppo-exp/golang-sdk/v5/eppoclient"
65
+
"github.com/Eppo-exp/golang-sdk/v6/eppoclient"
66
66
)
67
67
68
68
vareppoClient *eppoclient.EppoClient
@@ -85,6 +85,7 @@ GetNumericAssignment(...)
85
85
GetIntegerAssignment(...)
86
86
GetStringAssignment(...)
87
87
GetJSONAssignment(...)
88
+
GetJSONBytesAssignment(...)
88
89
```
89
90
90
91
Each function has the same signature, but returns the type in the function name. For booleans use `getBooleanAssignment`, which has the following signature:
@@ -107,7 +108,7 @@ The code below illustrates an example implementation of a logging callback using
107
108
108
109
```go
109
110
import (
110
-
"github.com/Eppo-exp/golang-sdk/v5/eppoclient"
111
+
"github.com/Eppo-exp/golang-sdk/v6/eppoclient"
111
112
"gopkg.in/segmentio/analytics-go.v3"
112
113
)
113
114
@@ -141,7 +142,7 @@ You can use the `eppoclient.ScrubbingLogger` to scrub PII from the logs.
141
142
142
143
```go
143
144
import (
144
-
"github.com/Eppo-exp/golang-sdk/v5/eppoclient"
145
+
"github.com/Eppo-exp/golang-sdk/v6/eppoclient"
145
146
"github.com/sirupsen/logrus"
146
147
)
147
148
@@ -208,7 +209,7 @@ Both loggers are configured with a maximum size to fit your desired memory alloc
208
209
209
210
```go
210
211
import (
211
-
"github.com/Eppo-exp/golang-sdk/v5/eppoclient"
212
+
"github.com/Eppo-exp/golang-sdk/v6/eppoclient"
212
213
)
213
214
214
215
vareppoClient *eppoclient.EppoClient
@@ -232,3 +233,11 @@ Internally, both loggers are simple proxying wrappers around [`lru.TwoQueueCache
232
233
## Philosophy
233
234
234
235
Eppo's SDKs are built for simplicity, speed and reliability. Flag configurations are compressed and distributed over a global CDN (Fastly), typically reaching your servers in under 15ms. Server SDKs continue polling Eppo’s API at 10-second intervals. Configurations are then cached locally, ensuring that each assignment is made instantly. Evaluation logic within each SDK consists of a few lines of simple numeric and string comparisons. The typed functions listed above are all developers need to understand, abstracting away the complexity of the Eppo's underlying (and expanding) feature set.
236
+
237
+
## Contributing
238
+
239
+
We welcome contributions to the Eppo Go SDK! If you find a bug or have a feature request, please open an issue on GitHub. If you'd like to contribute code, please fork the repository and submit a pull request.
0 commit comments