Golang 高并发聊天程序/go chat room
这是使用 Golang 网络编程实现的一个多人在线聊天系统,使用 goroutine 达到高并发的效果,使用 redis 来保存用户的注册信息。 项目目录结构如下:
…服务端和客户端代码基本独立,server 目录下是服务端代码,client 目录下是客户端代码,common 目录下的包由服务端和客户端共同使用
下载到本地的 GOPATH 目录下(后面会提供 go get 的方式以方便使用),由于这是 Golang 项目,所以需要你本地有 Golang 的运行环境
cd ${GOPATH}/src
git clone [email protected]:ItsWewin/go-chat.gitgo build -o server gochat/server/main
./servergo build -o client gochat/client
./client这样就大功告成,你就可以在本地体验本项目了。
项目目前实现了如下功能
The chat room developed by Golang, It's a good project to learn Golang and Golang netWork developemt
cd ${GOPATH}/src
git clone [email protected]:ItsWewin/go-chat.gitgo build -o server gochat/server/main
./servergo build -o client gochat/client
./clientNo open issues yet, or sync has not completed.