1. Install the package:
$ go get github.com/stathat/go
2. Import it in your code:
import (
        "github.com/stathat/go"
)
3. Make calls to StatHat. You do not need to create the stats first using the web interface.
stathat.PostEZCount("messages sent - female to male", "YOUR_EZKEY", 1)
stathat.PostEZValue("server load average", "YOUR_EZKEY", 0.622)

© 2011-2017 Numerotron Inc