Skip to content
This repository has been archived by the owner on Jan 21, 2019. It is now read-only.

Commit

Permalink
add readme
Browse files Browse the repository at this point in the history
  • Loading branch information
sokil committed Oct 10, 2017
1 parent 6ab5a35 commit 3ef3a87
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,9 @@ client.Count('a.b.c', 42, 0.7) # set count metric and send it to StatsD
Creating buffered client:

```go
client := NewBufferedClient("127.0.0.1", 9876) # create client
client.Open() # open connection to StatsD
client.Count('a.b.c', 42, 0.7) # set count metric and add it to buffer
client.Timing('a.b.d', 43) # set timing metric and add it to buffer
client.Flush() # send all metrics as one packet to StatsD
client := NewBufferedClient("127.0.0.1", 9876) # create client
client.Open() # open connection to StatsD
client.Count('a.b.c', 42, 0.7) # set count metric and add it to buffer
client.Timing('a.b.d', 43) # set timing metric and add it to buffer
client.Flush() # send all metrics as one packet to StatsD
```

0 comments on commit 3ef3a87

Please sign in to comment.