From 3defe22eed858b3ca9c810968e2779d932aeb84e Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Sun, 18 Apr 2021 15:03:51 -0700 Subject: [PATCH] Creates a struct for event --- {ga => analytics}/ga_example.go | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) rename {ga => analytics}/ga_example.go (85%) diff --git a/ga/ga_example.go b/analytics/ga_example.go similarity index 85% rename from ga/ga_example.go rename to analytics/ga_example.go index e69ae6e4..de4454b4 100644 --- a/ga/ga_example.go +++ b/analytics/ga_example.go @@ -8,6 +8,16 @@ import ( "net/http/httputil" ) +type StartEvent struct { + Version string + FilterLength int + CustomAddress bool + CustomBase bool + TailSize int + Protected bool + +} + func main() { postBody := map[string]interface{}{ "client_id": "XXXXXXXXXX.YYYYYYYYYY", @@ -16,8 +26,8 @@ func main() { "name": "test_go", "params": map[string]interface{}{ "version": "1.1.1", - "docker": "2", - "color": "red", + "docker": "2", + "color": "red", }, }, },