| 作者: Witton Bell
| 1882 字
| 4 分钟
本文以使用 origin框架(一款使用Go语言写的开源游戏服务器框架)为例进行说明,当然也可以使用其它的框架或者自己写。 在 ……
阅读全文
| 作者: Witton Bell
| 932 字
| 2 分钟
在Windows中,如果想使用Linux下的一些命令或者开发工具,可以安装Cygwin或者MinGW,MinGW相比Cy ……
阅读全文
| 作者: Witton Bell
| 1850 字
| 4 分钟
Go的标准库中Windows下的网络是使用了IOCP的,参见go源码go/src/runtime/netpoll_win ……
阅读全文
| 作者: Witton Bell
| 561 字
| 2 分钟
在使用Protobuf通信或者存储过程中,可能会有这样一个需求,根据PB的message名字来构建一个PB结构的实例,然 ……
阅读全文
| 作者: Witton Bell
| 808 字
| 2 分钟
最近需要使用Go写一个Web API项目,可以使用Beego与Gin来写此类项目,还是非常方便的,这里就介绍一下使用Bee ……
阅读全文
| 作者: Witton Bell
| 1413 字
| 3 分钟
最近需要使用Go写一个Web API项目,可以使用Beego与Gin来写此类项目,前文 使用Beego创建API项目并自动化 ……
阅读全文
| 作者: Witton Bell
| 1374 字
| 3 分钟
我们在看Go语言的源码时,经常会看到一些特别的注释,比如: 1//go:build 2//go:linkname 3//go:nosplit 4//go:noescape 5//go:uintptrescapes 6//go:noinline 7//go:nowritebarrierrec 等等,这些特别的注释其实是Go编译器的指示指令。 ……
阅读全文
| 作者: Witton Bell
| 932 字
| 2 分钟
在Windows中,如果想使用Linux下的一些命令或者开发工具,可以安装Cygwin或者MinGW,MinGW相比Cy ……
阅读全文
| 作者: Witton Bell
| 293 字
| 1 分钟
首先创建容器 1sudo podman pull golang:1.21 2sudo podman run -itd --name go-dlv golang:1.21 然后使用命令 1sudo podman exec -it go-dlv /bin/bash 进入容器,在容器内执行下面的命令安装go调试器dlv: 1go env -w GOPROXY=https://goproxy.cn,direct ……
阅读全文
| 作者: Witton Bell
| 2080 字
| 5 分钟
一、前言 在游戏中,任务是非常常见的玩法,可能会有主线任务,支线任务以及其它一些类型的任务,各任务可能还会有前置任务,即需 ……
阅读全文