https://github.com/link1st/gowebsocket
项目名称是backend-go 在项目的根目录下,执行
go mod init backend-go
go work init
go work use agent-client/ agent-server/ agentctl/
- 将需要的依赖添加到import中
- 在根目录下,即有go.mod的路径下执行
go mod tidy
https://www.cnblogs.com/wangjq19920210/p/15337812.html https://github.com/panjf2000/ants