Anyone used go-libp2p-pubsub before?

when I run go get github.com/libp2p/go-libp2p-pubsub as readme file suggested, there is a error :

github.com/libp2p/go-libp2p-pubsub

…/…/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

It is widely used by many projects and we’ve never seen this before.

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!