Posted in

Go语言不是冷冰冰的并发工具——而是现代软件的情书写作引擎:3个被Go标准库深藏的浪漫API(sync.Once的告白、http.HandlerFunc的伏笔、context.WithValue的隐喻)

第一章:Go语言不是冷冰冰的并发 … Go语言不是冷冰冰的并发工具——而是现代软件的情书写作引擎:3个被Go标准库深藏的浪漫API(sync.Once的告白、http.HandlerFunc的伏笔、context.WithValue的隐喻)Read more

Posted in

Go克隆机器人必须掌握的3种上下文克隆模式:context.WithValue vs context.WithCancel vs 自定义CloneableContext接口

第一章:Go克隆机器人必须掌握的 … Go克隆机器人必须掌握的3种上下文克隆模式:context.WithValue vs context.WithCancel vs 自定义CloneableContext接口Read more

Posted in

Go日志上下文传递的3种模式:context.WithValue vs log/slog.WithGroup vs OpenTelemetry propagation(实测延迟差异达17ms)

第一章:Go日志上下文传递的3种 … Go日志上下文传递的3种模式:context.WithValue vs log/slog.WithGroup vs OpenTelemetry propagation(实测延迟差异达17ms)Read more

Posted in

Go写网站必须掌握的5个隐藏技巧:context.WithValue滥用警告、http.TimeoutHandler陷阱、sync.Pool误用案例、unsafe.String优化边界、go:embed资源热加载失效根因

第一章:Go语言是写网站的吗 G … Go写网站必须掌握的5个隐藏技巧:context.WithValue滥用警告、http.TimeoutHandler陷阱、sync.Pool误用案例、unsafe.String优化边界、go:embed资源热加载失效根因Read more