See the blog article and video,  Golang SDK Available on PubNub
Get the PubNub Go SDK from Github