I am following this tutorial to publish a topic to Pub/Sub from a golang project and here's the code I have for that project at the moment:
package main
import "cloud.google.com/go/pubsub"
import "fmt"
func main() {
fmt.Printf("hello, world
")
}
All it does is simply imports the pubsub but when I run go get
I get this error: undefined: ocgrpc.NewClientStatsHandler
C:\Users\iha001\Dev\golang-projects\src\github.com
aguibihab\golang-playarea\src\gcloud>go get
# cloud.google.com/go/pubsub
..\..\..\..\..\cloud.google.com\go\pubsub\go18.go:34:51: undefined: ocgrpc.NewClientStatsHandler
Is there anything else I need to install to get this running?