File tree Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Expand file tree Collapse file tree 2 files changed +17
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
Optimizely Server Side SDK.... in Go.
4
4
5
- ## Installation
5
+ ## Installation / Basic Usage
6
+
7
+ TL;DR: just ` yy ` and ` p ` from the ` examples ` directory.
6
8
7
9
1 . Install the Optimizely Go SDK with ` go get ` :
8
10
9
11
go get github.com/optimizely/go-sdk
12
+
13
+ 2 . Import the Optimizely SDK:
14
+
15
+ import optimizely "github.com/optimizely/go-sdk/optimizely"
16
+
17
+ 3 . Create a new ` OptimizelyClient ` object with your Account ID:
18
+
19
+ optimizely_client , err := optimizely.GetOptimizelyClient(OPTIMIZELY_ACCOUNT_ID)
20
+
21
+ 4 . Do something cool with the Optimizely client!
22
+
23
+ optimizely_client.Track(.....)
Original file line number Diff line number Diff line change @@ -2,9 +2,10 @@ package main
2
2
3
3
import (
4
4
"fmt"
5
- "github.com/optimizely/go-sdk/optimizely"
6
5
)
7
6
7
+ import optimizely "github.com/optimizely/go-sdk/optimizely"
8
+
8
9
func main () {
9
10
OPTIMIZELY_ACCOUNT_ID := "12345"
10
11
_ , err := optimizely .GetOptimizelyClient (OPTIMIZELY_ACCOUNT_ID )
You can’t perform that action at this time.
0 commit comments