panjf2000 / gnet

🚀 gnet is a high-performance, lightweight, non-blocking, event-driven networking framework written in pure Go.
https://gnet.host
Apache License 2.0
9.61k stars 1.04k forks source link

win system go module #48

Closed TOBEMINE closed 4 years ago

TOBEMINE commented 4 years ago

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)

panjf2000 commented 4 years ago

You should get the latest version of gnet: go get -u github.com/panjf2000/gnet

TOBEMINE commented 4 years ago

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

github.com/panjf2000/gnet

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>

panjf2000 commented 4 years ago

That is odd, try: go get -u

TOBEMINE commented 4 years ago

I try it ,by now,the same problem

panjf2000 commented 4 years ago

What about go get -u github.com/panjf2000/gnet@v1.0.0-rc.4?

TOBEMINE commented 4 years ago

It works,thanks