Example
The following examples currently run Nats Streaming Server, so you can first run that using Docker
docker run -v $(pwd)/data:/datastore -p 4222:4222 -p 8223:8223 nats-streaming -p 4222 -m 8223 -store file -dir /datastore
Then you can run the example subscriber and publisher..
go run example/nats-subscriber/main.go
go run example/nats-publisher/main.go