Go语言编程技巧 一个翻译项目, 主要翻译Phuong Le的 Golang Tips系列。
翻译后的网站是: https://colobu.com/gotips/
gotips 002: 多阶段 defer
通过简单的'defer'关键字,你可以借助一个小技巧实现在另一个函数的开头和结尾处执行一个函数。下面的图片展示了这一实现方式。
goroutine调度器揭秘 2
我翻译了Goroutine Scheduler Revealed: Never See Goroutines the Same Way Again, 这篇文章发表于1月2号,作者在文章最后说:
在接下来的部分,我们将更深入地探讨抢占式调度,并分析调度程序在运行期间所采取的每一步骤。
goroutine调度器揭秘
你以前可能听说过 Goroutine 调度器,但你对它的工作原理了解多少?它如何将 goroutine 与线程配对?
原文:Goroutine Scheduler Revealed: Never See Goroutines the Same Way Again
更强大的Go执行跟踪能力
Go官方博客:More powerful Go execution traces by Michael Knyszek.
slog 终极指南
原文: Logging in Go with Slog: The Ultimate Guide by Ayooluwa Isaiah.