Skip to content

Commit

Permalink
Fix version in example
Browse files Browse the repository at this point in the history
  • Loading branch information
velppa committed Jan 17, 2019
1 parent 47c55df commit 2df8644
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion analytics_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down

0 comments on commit 2df8644

Please sign in to comment.