Skip to content

Commit 476a5bb

Browse files
rename module to v2 (FF-757) (#24)
1 parent e806a61 commit 476a5bb

File tree

4 files changed

+8
-686
lines changed

4 files changed

+8
-686
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ This version of the SDK is compatible with Go v1.19 and above.
1515

1616
```
1717
import (
18-
"github.com/Eppo-exp/golang-sdk/eppoclient"
18+
"github.com/Eppo-exp/golang-sdk/v2/eppoclient"
1919
)
2020
2121
var eppoClient = &eppoclient.EppoClient{}

eppoclient/doc.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
/*
2-
eppoclient is a client sdk for eppo.cloud randomization API
3-
It is used to retrieve the experiments data and put it to in-memory cache,
4-
and then get assignments information.
2+
EppoClient is a client sdk for the `eppo.cloud` randomization API.
3+
It is used to retrieve the experiments data and put it to in-memory cache, and then get assignments information.
54
65
Usage:
76
87
import (
9-
"github.com/Eppo-exp/golang-sdk/eppoclient"
8+
"github.com/Eppo-exp/golang-sdk/v2/eppoclient"
109
)
1110
1211
var eppoClient = &eppoclient.EppoClient{}
@@ -19,7 +18,7 @@
1918
}
2019
2120
func apiEndpoint() {
22-
assignment, _ := eppoClient.GetAssignment("subject-1", "experiment_5", sbjAttrs)
21+
assignment, _ := eppoClient.GetStringAssignment("subject-1", "experiment_5", sbjAttrs)
2322
2423
if assignment == "control" {
2524
// do something

go.mod

Lines changed: 3 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,17 @@
1-
module github.com/Eppo-exp/golang-sdk
1+
module github.com/Eppo-exp/golang-sdk/v2
22

33
go 1.19
44

55
require (
6-
cloud.google.com/go/storage v1.25.0
76
github.com/hashicorp/golang-lru v0.5.4
87
github.com/stretchr/testify v1.8.0
9-
google.golang.org/api v0.88.0
108
)
119

1210
require (
13-
cloud.google.com/go v0.102.1 // indirect
14-
cloud.google.com/go/compute v1.7.0 // indirect
15-
cloud.google.com/go/iam v0.3.0 // indirect
1611
github.com/davecgh/go-spew v1.1.1 // indirect
17-
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
18-
github.com/golang/protobuf v1.5.2 // indirect
19-
github.com/google/go-cmp v0.5.8 // indirect
20-
github.com/google/uuid v1.3.0 // indirect
21-
github.com/googleapis/enterprise-certificate-proxy v0.1.0 // indirect
22-
github.com/googleapis/gax-go/v2 v2.4.0 // indirect
12+
github.com/kr/pretty v0.1.0 // indirect
2313
github.com/pmezard/go-difflib v1.0.0 // indirect
2414
github.com/stretchr/objx v0.4.0 // indirect
25-
go.opencensus.io v0.23.0 // indirect
26-
golang.org/x/net v0.0.0-20220722155237-a158d28d115b // indirect
27-
golang.org/x/oauth2 v0.0.0-20220622183110-fd043fe589d2 // indirect
28-
golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f // indirect
29-
golang.org/x/text v0.3.7 // indirect
30-
golang.org/x/xerrors v0.0.0-20220609144429-65e65417b02f // indirect
31-
google.golang.org/appengine v1.6.7 // indirect
32-
google.golang.org/genproto v0.0.0-20220720214146-176da50484ac // indirect
33-
google.golang.org/grpc v1.48.0 // indirect
34-
google.golang.org/protobuf v1.28.0 // indirect
15+
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127 // indirect
3516
gopkg.in/yaml.v3 v3.0.1 // indirect
3617
)

0 commit comments

Comments
 (0)