doushi1912
2018-03-19 02:52
浏览 79
已采纳

将pubsub与golang一起使用:ocgrpc.NewClientStatsHandler

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?

2条回答 默认 最新

相关推荐 更多相似问题