used together with https://github.com/nats-io/nats. Got code from nats-io/nats.go#58
import into your project
import(
_ "github.com/wvell/natspbufclient"
)
If you want to run the tests have gnatsd installed in your $PATH
go install github.com/nats-io/gnatsd