when I run go get github.com/libp2p/go-libp2p-pubsub as readme file suggested, there is a error :
…/…/go/src/github.com/libp2p/go-libp2p-pubsub/gossipsub.go:1221:11: log.EventBegin undefined (type *log.ZapEventLogger has no field or method EventBegin)
Does anyone know how to use this module only?
thanks in advance
vyzo
June 30, 2020, 11:36am
2
It is widely used by many projects and we’ve never seen this before.
vyzo
June 30, 2020, 11:47am
3
Btw, are you using go mod? It must be used with go modules.
go mod works. and I tried in different folder and it shows
go: downloading github.com/libp2p/go-libp2p-pubsub v0.3.2
go: github.com/libp2p/go-libp2p-pubsub upgrade => v0.3.2
and also I could find it in gopath/src/github.com/libp2p/go-libp2p-pubsub
so I guess I go get it into my gopath folder?
anyway, it works now thanks a lot!