From a2301561f6e8b20bb7807d9aa87f0713496e1c14 Mon Sep 17 00:00:00 2001 From: Jamie Sinn Date: Thu, 24 Oct 2024 13:51:31 -0400 Subject: [PATCH] undo testing example changes --- example/local/main.go | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/example/local/main.go b/example/local/main.go index 0ecdb01e..dfa5e3f3 100644 --- a/example/local/main.go +++ b/example/local/main.go @@ -18,14 +18,7 @@ func main() { log.Fatal("DEVCYCLE_VARIABLE_KEY env var not set: set it to a variable key") } - user := devcycle.User{UserId: "test", CustomData: map[string]interface{}{ - "number-custom-property": 1334, - "number-custom-property-3dp": 1334.610, - "number-custom-property-2dp": 1334.61, - "number-custom-property-1dp": 1334.6, - "number-custom-property-0dp": 1334, - }} - + user := devcycle.User{UserId: "test"} dvcOptions := devcycle.Options{ EventFlushIntervalMS: 0, ConfigPollingIntervalMS: 10 * time.Second, @@ -39,20 +32,6 @@ func main() { } log.Printf("client initialized") - variable, err := client.Variable(user, "go-custom-data", false) - variable2, err2 := client.Variable(user, "go-custom-data", false) - if err != nil { - log.Fatalf("Error getting variable %v: %v", "go-custom-data", err) - } - - if err2 != nil { - log.Fatalf("Error getting variable %v: %v", "go-custom-data", err2) - } - log.Printf("variable %v: value=%v (%v) defaulted=%t", variable.Key, variable.Value, variable.Type_, variable.IsDefaulted) - log.Printf("variable %v: value=%v (%v) defaulted=%t", variable2.Key, variable2.Value, variable2.Type_, variable2.IsDefaulted) - - return - features, _ := client.AllFeatures(user) for key, feature := range features { log.Printf("features Key:%s, feature:%#v", key, feature)