##
准备
使用go mod需要1.11以后的版本才能使用,并且需要配置GO111MODULE环境变量
GO111MODULE=on(可设置三个值,分别是auto, on, off)
配置环境变量
新建 用户变量 变量名:GO111MODULE 变量值:on
##
进入仓库根目录
go mod init
mod命令
- go help mod 查看mod命令的帮助
- go mod init
初始化模块,目录下生成go.mod - go mod tidy 根据go.mod文件来处理依赖关系
- go list -m all 显示依赖文件
- go mod download <path@version> 下载依赖(path是包的路径,version是包的版本)
- go mod vendor 复制所有依赖到模块下的vendor目录
- go mod graph 输出模块所需的依赖表
- go mod verify 验证模块的完整性
orm 库
文档注释规范
参考
- go数据同步(sync与atomic包)
- fatih/pool go连接池
- 《Go 同步和并发设计模式》培训会后整理
- Golang之chan/goroutine(转)
- tyrchen/chatroom
- Golang类似Erlang OTP的实现
- 【GO语言】棋牌游戏服务器
- dbldqt/landlord
- 纯go实现的分布式im即时通讯系统
- golang制作一个斗地主游戏服务器[10]:房间、桌子、玩家
2019/9/4 23:21:02
https://my.oschina.net/mickelfeng/blog/3013119
2019/9/4 23:27:03
https://github.com/gansidui/chatserver?files=1
2019/9/4 23:45:09
https://www.ctolib.com/mip/fananchong-go-xserver.html
2019/9/4 23:49:40
https://www.ctolib.com/mip/connsvr.html
2019/9/4 23:53:38
https://blog.csdn.net/RA681t58CJxsgCkJ31/article/details/84986162
0:01:49
https://www.jianshu.com/p/64e777b87c96
0:03:01
https://www.codercto.com/a/52418.html
0:16:20
https://blog.csdn.net/RA681t58CJxsgCkJ31/article/details/84948665
0:21:09
https://blog.csdn.net/shangguan_1234/article/details/79584856
0:38:38
https://github.com/dwg255/landlord
8:52:20
https://coding.net/u/anywherecreate/p/px_game_server/git
9:05:15
https://github.com/Golangltd/codeclass
9:09:52
https://github.com/Golangltd/codeclass
9:12:24
https://www.zhihu.com/question/35385236/answer/62654548
https://github.com/shuimuliang/qnmahjongserver
https://github.com/gochenzl/chess
https://www.jianshu.com/p/546773568592
2019/9/5 9:12:24
https://www.zhihu.com/question/35385236/answer/62654548
8:33:10
https://github.com/tux21b/ChessBuddy?files=1
8:51:38
https://blog.csdn.net/shangguan_1234/article/details/79584856
9:01:34
https://blog.csdn.net/hnxxwyq/article/details/12995083
9:12:28
https://github.com/3zheng/railgun/blob/master/README.md
https://studygolang.com/topics/2167
2019/9/5 0:38:38
https://github.com/dwg255/landlord
2019/9/5 8:52:20
https://coding.net/u/anywherecreate/p/px_game_server/git
2019/9/5 9:05:15
https://github.com/Golangltd/codeclass
2019/9/5 9:09:52
https://github.com/Golangltd/codeclass
2019/9/5 9:12:24
https://www.zhihu.com/question/35385236/answer/62654548
2019/9/6 8:33:10
https://github.com/tux21b/ChessBuddy?files=1
2019/9/6 8:51:38
https://blog.csdn.net/shangguan_1234/article/details/79584856
2019/9/6 9:01:34
https://blog.csdn.net/hnxxwyq/article/details/12995083
2019/9/6 9:12:28
https://github.com/3zheng/railgun/blob/master/README.md
2019/9/6 9:14:15
https://studygolang.com/topics/2167
2019/9/7 15:41:29
https://cloud.tencent.com/developer/article/1487549
2019/9/8 1:17:55
https://www.jianshu.com/p/f20cd2304aea
2019/9/8 2:01:10
https://segmentfault.com/a/1190000006744213?utm_medium=referral&utm_source=tuicool
2019/9/8 2:29:03
https://github.com/9b9387/zero?files=1
2019/9/8 2:33:51
https://blog.csdn.net/fwhezfwhez/article/details/89487425
2019/9/8 3:46:17
https://github.com/fwhezfwhez/tcpx?files=1
2019/9/8 4:02:38
https://www.cnblogs.com/tohxyblog/p/8974763.html
2019/9/8 4:05:27
https://www.cnblogs.com/tohxyblog/p/8974763.html
2019/9/8 4:10:05
https://www.xuebuyuan.com/1289326.html
2019/9/8 4:11:43
https://my.oschina.net/u/1859679/blog/842513
2019/9/8 4:16:12
http://m.ishare.iask.sina.com.cn/f/32P6HS6NWpC.html
2019/9/8 4:21:35
https://blog.csdn.net/chenjiayi_yun/article/details/23291731
2019/9/8 4:28:04
http://open.biligame.com/wiki/sdk_server_doc/
2019/9/8 4:32:22
https://go.ctolib.com/magiclvzs-antnet.html
2019/9/8 5:17:10
https://blog.csdn.net/diagnoa_wleng/article/details/81608795
2019/9/8 5:27:22
https://itbilu.com/nodejs/npm/EknY6k0FX.html
2019/9/8 5:32:06
https://itbilu.com/nodejs/npm/EknY6k0FX.html
2019/9/8 5:42:12
https://www.it610.com/article/4672602.htm
2019/9/8 5:45:17
https://my.oschina.net/nextzeus/blog/1204620
2019/9/9 2:36:37
https://blog.csdn.net/micl200110041/article/details/82013032
2019/9/9 2:37:21
https://hxzqlh.com/2018/09/12/go-rate-limit/
2019/9/9 2:37:58
https://cloud.tencent.com/developer/article/1477080
2019/9/9 2:38:23
https://studygolang.com/articles/15890
2019/9/9 2:43:15
https://m.baidu.com/ala/c/www.ctolib.com/mip/yangwenmai-ratelimit.html
2019/9/9 2:45:09
https://blog.csdn.net/zl1zl2zl3/article/details/84631824
2019/9/9 2:46:04
https://www.lbbniu.com/6240.html
2019/9/9 12:33:03
https://blog.csdn.net/weixin_33841503/article/details/91447175
2019/9/11 22:06:49
https://github.com/Hadopire/ws2tcp
2019/9/11 23:01:45
https://github.com/sarimoly/gameserver-1
2019/9/11 23:09:13
https://github.com/dyzdyz010/GameServer/blob/master/console/console.go
2019/9/11 23:15:18
https://github.com/davyxu/cellmesh
2019/9/12 0:27:01
https://study.163.com/course/courseMain.htm?courseId=1005164022&_trace_c_p_k2_=427bab11114345e99a681f020e4fe044
2019/9/12 0:30:32
https://study.163.com/course/courseMain.htm?courseId=1006521005&_trace_c_p_k2_=020813f66bfc440e9afd27cb2929b5a8
2019/9/12 0:31:12
https://study.163.com/course/introduction/1209318815.htm
2019/9/12 0:33:03
https://study.163.com/course/introduction/1004720008.htm?share=1&shareId=1018712305
2019/9/12 0:37:46
http://www.eimhe.com/thread-146949-1-1.html
2019/9/13 1:55:28
https://studygolang.com/articles/17405
2019/9/13 2:02:46
https://blog.csdn.net/axuan_k/article/details/93363778
2019/9/13 2:03:45
https://blog.csdn.net/matchvs/article/details/80230159
2019/9/13 2:12:12
https://gameinstitute.qq.com/community/detail/128992
2019/9/13 2:20:51
https://github.com/simonidf
2019/9/13 2:39:00
https://github.com/BaiPingg/TankGameServer
9:27:17
https://github.com/TheAlgorithms
9:27:17
https://github.com/jinzhu/gorm
9:27:17
https://github.com/sirupsen/logrus
9:27:17
https://github.com/unknwon/the-way-to-go_ZH_CN
9:27:18
https://github.com/unknwon/go-study-index
9:27:18
https://www.ctolib.com/go/docs/
9:27:18
https://github.com/mmcgrana/gobyexample
9:27:18
https://github.com/yudai/gotty
9:27:18
https://www.ctolib.com/SolarLune-resolv.html
9:27:18
https://github.com/ffhelicopter/Go42
9:27:19
https://github.com/xcxlegend/tank2d.io
9:27:19
https://github.com/EngoEngine/engo
9:27:19
https://www.ctolib.com/go/
9:27:19
https://www.ctolib.com/go/
9:27:19
https://www.ctolib.com/senghoo-golang-design-pattern.html
9:27:19
https://www.ctolib.com/chai2010-advanced-go-programming-book.html
9:27:20
https://www.ctolib.com/go-astar.html
9:27:21
https://www.ctolib.com/Humpheh-goboy.html
9:27:21
https://www.ctolib.com/AppsComTr-Spaceship.html
9:27:21
https://www.ctolib.com/dwg255-invest.html
9:27:21
https://www.ctolib.com/sniperHW-sanguo.html
9:27:21
https://www.ctolib.com/GoogleCloudPlatform-open-match.html
9:27:21
https://github.com/keyunq/ytguess
9:27:21
https://www.ctolib.com/lonnng-nano.html
9:27:22
https://www.ctolib.com/kcp-go.html
9:27:22
https://www.ctolib.com/magicsea-ga_server.html
9:27:22
https://www.ctolib.com/kcptun.html
9:27:22
https://www.ctolib.com/ankur-anand-simple-go-rpc.html
9:27:22
https://www.ctolib.com/Unknwon-the-way-to-go_ZH_CN.html
9:27:22
https://www.ctolib.com/quii-learn-go-with-tests.html
9:27:23
https://github.com/chanxuehong/wechat
9:27:23
https://github.com/silenceper/wechat
9:27:23
https://github.com/guidao/gopay
9:27:23
https://github.com/193Eric/go-wechat
9:27:23
https://github.com/milkbobo/gopay
9:27:23
https://github.com/gochenzl/chess
9:27:23
https://github.com/medivhzhan/weapp
go 静态库 动态库
插件中定义的 struct 无法暴露出来,可以让主程序和插件程序import公共的 package 来解决
私有方法、变量不会被暴露出来
vladimirvivien/go-plugin-example
campoy/golang-plugins
natefinch/pie
dullgiulio/pingo
wendigo/go-bind-plugin
chain33开发随记
chain33 官方插件系统
potix/plugger