gnet v2 supports Windows

看起来像是环境配置的问题,go test 能跑吗?
不行,我用的ide是vscode

gnet包中,定义了两个eventloop struct ??

你是什么操作系统?
应该是windows系统下的开发
一样一样的问题,
Windows 7、vscode下,编译github.com/gnet-io/gnet-examples下的示例程序,提示:

2.0现在不支持win,我是win下用v1,linux下用v2 这样分开的,搞得挺麻烦
v2好像不支持win,运行报错一样的问题。大佬有解决方法吗。

github.com\panjf2000\gnet\[email protected]\engine.go
//go:build linux || freebsd || dragonfly || darwin // +build linux freebsd dragonfly darwin
To be notice "this is the problem" :) i'm not expert... by i'll read about it https://www.sobyte.net/post/2021-09/golang-netpoll/ and understand why...
oh 💩 i just noticed this is not working on windows. just wasted hour of my time setting up a new project. @panjf2000 you should at least implement workable windows version for basic development. it does not have to provide the same performance, obviously, but it should at least work.
go has built-in epoll implementation for windows so writing a simple wrapper for github.com/panjf2000/gnet/v2/internal/netpoll should not be a problem.
just fyi, windows still dominates not just the internet but developers as well(SO 2021 survey)

I noticed entire code base is windows-free so it's not just the netpoll library. This really sucks.
围观一下, 期待早日支持windows
2023新期待支持一下windows
+1 windows support for V2
I'm waiting