https://github.com/alex-rachel/tgameserver
TGameServer
https://github.com/alex-rachel/tgameserver
Last synced: 12 months ago
JSON representation
TGameServer
- Host: GitHub
- URL: https://github.com/alex-rachel/tgameserver
- Owner: Alex-Rachel
- Created: 2021-07-27T11:44:03.000Z (almost 5 years ago)
- Default Branch: main
- Last Pushed: 2021-08-12T05:09:49.000Z (almost 5 years ago)
- Last Synced: 2025-06-14T04:05:09.764Z (12 months ago)
- Language: Go
- Size: 43.9 KB
- Stars: 86
- Watchers: 3
- Forks: 30
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# TGameServer
[](https://protocol.ai)
[](https://libp2p.io/)
[](https://webchat.freenode.net/?channels=%23libp2p)
[](https://codecov.io/gh/libp2p/go-reuseport)
[](https://travis-ci.org/libp2p/go-reuseport)
[](https://discuss.libp2p.io)
### TGame服务端
#
### 使用Go + TCP + UDP +My
### doc: https://github.com/ALEXTANGXIAO/TGameServer
### 客户端地址: https://github.com/ALEXTANGXIAO/TGameUnity
Tested on `darwin`, `linux`, and `windows`.
---
```
├── Gameproto // 协议
├── app // 核心逻辑处理层
├── config // 配置
├── logs // 日志配置
├── manager // 管理器
└── main.go // 入口.go
```
```
TGame服务端 version1.0.0
参考资料
Go 语言使用 net 包实现 Socket 网络编程 https://zhuanlan.zhihu.com/p/143346084
Go语言TCP/UDP编程 https://blog.csdn.net/guidao13/article/details/84037778
Go 语言自学教程入门到精通实战进阶提升(学习路线+思维导图+视频教程+面试题+学习工具+大厂实战手册)https://www.magedu.com/84998.html
```
```
1.go env -w GO111MODULE=auto
2.go env -w GOPROXY=https://goproxy.cn/ 或者
go env -w GOPROXY=https://mirrors.aliyun.com/goproxy/
go get -u github.com/golang/protobuf/protoc-gen-go
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go get github.com/golang/protobuf/proto
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
protobuf解决办法
https://blog.csdn.net/qq_36532540/article/details/107304949
使用protobuf gogo
https://github.com/gogo/protobuf.git
```