Closed TOBEMINE closed 4 years ago
You should get the latest version of gnet: go get -u github.com/panjf2000/gnet
D:\GoWorks>go get -u github.com/panjf2000/gnet go: finding github.com/smartystreets-prototypes/go-disruptor latest go: finding golang.org/x/sys latest
pkg\mod\github.com\panjf2000\gnet@v0.1.3\gnet.go:129:4: undefined: sniffError pkg\mod\github.com\panjf2000\gnet@v0.1.3\gnet.go:159:14: too many arguments in call to serve have (Events, []listener, bool) want (Events, []listener)
D:\GoWorks>
That is odd, try: go get -u
I try it ,by now,the same problem
What about go get -u github.com/panjf2000/gnet@v1.0.0-rc.4
?
It works,thanks
github.com/panjf2000/gnet
D:\GoWorks\pkg\mod\github.com\panjf2000\gnet@v0.1.3\gnet.go:129:4: undefined: sniffError D:\GoWorks\pkg\mod\github.com\panjf2000\gnet@v0.1.3\gnet.go:159:14: too many arguments in call to serve have (Events, []listener, bool) want (Events, []listener)