From 2df8644008e707cb802e4ad6961100f095e1d5e9 Mon Sep 17 00:00:00 2001 From: Pavel Popov Date: Thu, 17 Jan 2019 18:50:11 +0100 Subject: [PATCH] Fix version in example --- analytics_test.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/analytics_test.go b/analytics_test.go index 2fd42e9..64c6303 100644 --- a/analytics_test.go +++ b/analytics_test.go @@ -199,7 +199,13 @@ func ExampleTrack() { }, }) - fmt.Printf("%s\n", <-body) + s := strings.Replace(string(<-body), + fmt.Sprintf(`"version": "%s"`, Version), + `"version": "3.4.0"`, + -1, + ) + + fmt.Printf("%s\n", s) // Output: // { // "batch": [