Skip to content

Commit 1ce7f11

Browse files
release v6 (#71)
* release v6 * readme
1 parent 25fb6c7 commit 1ce7f11

File tree

4 files changed

+20
-10
lines changed

4 files changed

+20
-10
lines changed

README.md

Lines changed: 16 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ In your `go.mod`, add the SDK package as a dependency:
2222

2323
```
2424
require (
25-
github.com/Eppo-exp/golang-sdk/v5
25+
github.com/Eppo-exp/golang-sdk/v6
2626
)
2727
```
2828

2929
Or you can install the SDK from the command line with:
3030

3131
```
32-
go get github.com/Eppo-exp/golang-sdk/v5
32+
go get github.com/Eppo-exp/golang-sdk/v6
3333
```
3434

3535
## Quick start
@@ -40,7 +40,7 @@ Begin by initializing a singleton instance of Eppo's client. Once initialized, t
4040

4141
```go
4242
import (
43-
"github.com/Eppo-exp/golang-sdk/v5/eppoclient"
43+
"github.com/Eppo-exp/golang-sdk/v6/eppoclient"
4444
)
4545

4646
var eppoClient *eppoclient.EppoClient
@@ -62,7 +62,7 @@ func main() {
6262

6363
```go
6464
import (
65-
"github.com/Eppo-exp/golang-sdk/v5/eppoclient"
65+
"github.com/Eppo-exp/golang-sdk/v6/eppoclient"
6666
)
6767

6868
var eppoClient *eppoclient.EppoClient
@@ -85,6 +85,7 @@ GetNumericAssignment(...)
8585
GetIntegerAssignment(...)
8686
GetStringAssignment(...)
8787
GetJSONAssignment(...)
88+
GetJSONBytesAssignment(...)
8889
```
8990

9091
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
107108

108109
```go
109110
import (
110-
"github.com/Eppo-exp/golang-sdk/v5/eppoclient"
111+
"github.com/Eppo-exp/golang-sdk/v6/eppoclient"
111112
"gopkg.in/segmentio/analytics-go.v3"
112113
)
113114

@@ -141,7 +142,7 @@ You can use the `eppoclient.ScrubbingLogger` to scrub PII from the logs.
141142

142143
```go
143144
import (
144-
"github.com/Eppo-exp/golang-sdk/v5/eppoclient"
145+
"github.com/Eppo-exp/golang-sdk/v6/eppoclient"
145146
"github.com/sirupsen/logrus"
146147
)
147148

@@ -208,7 +209,7 @@ Both loggers are configured with a maximum size to fit your desired memory alloc
208209

209210
```go
210211
import (
211-
"github.com/Eppo-exp/golang-sdk/v5/eppoclient"
212+
"github.com/Eppo-exp/golang-sdk/v6/eppoclient"
212213
)
213214

214215
var eppoClient *eppoclient.EppoClient
@@ -232,3 +233,11 @@ Internally, both loggers are simple proxying wrappers around [`lru.TwoQueueCache
232233
## Philosophy
233234

234235
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.
240+
241+
* Bump version in `eppoclient/version.go`
242+
* Tag release as `vX.Y.Z`
243+
* Create a Github release with the tag

eppoclient/initclient.go

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ package eppoclient
44

55
import "net/http"
66

7-
var __version__ = "5.2.0"
8-
97
// InitClient is required to start polling of experiments configurations and create
108
// an instance of EppoClient, which could be used to get assignments information.
119
func InitClient(config Config) (*EppoClient, error) {

eppoclient/version.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
package eppoclient
2+
3+
var __version__ = "6.0.0"

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
module github.com/Eppo-exp/golang-sdk/v5
1+
module github.com/Eppo-exp/golang-sdk/v6
22

33
go 1.19
44

0 commit comments

Comments
 (0)