Go中几乎是最常用的故障注入工具
Nginx upstream模块
upstream模块的内容应放于 nginx.conf 配置的 http{} 标签内,其默认的调度算法是rr (轮循 round-robin)
Go time.NewTicker()与定时器
Go 1.14为了优化计时器的性能,将计时器和epoll耦合在一起了~
创建一个timer时,也会进到epoll的初始化(新timer的实现依赖了epoll的实现)
golang实现链表及常用操作
原文链接: https://dashen.tech/page/55/index.html
版权声明: 转载请注明出处.
Gin Context中能获取到的信息
Gin可以通过c.Request.URL.Path 拿到请求的路径
从url中获取参数:ShouldBindUri(&req)
从body中获取参数:c.ShouldBindJSON(&req)
Go语言的自举
Note that cmd/dist and (I think) some parts of cmd/compile and cmd/link need to remain buildable with Go 1.4 for bootstraping. Thus, these cannot use features newer than Go 1.4. Also see src/cmd/dist/README.
However, #44505 proposes to adopt Go 1.16 as the bootstrap toolchain for Go 1.18. That proposal was accepted, so we’ll probably be able to replace io/ioutil there as well for Go 1.18.
MySQL系统变量sql_safe_updates
原文链接: https://dashen.tech/page/55/index.html
版权声明: 转载请注明出处.
MySQL blob类型
https://www.cnblogs.com/wt645631686/p/10102509.html
select id, CAST(config AS CHAR(10000) CHARACTER SET utf8) from 表名 where id=111