01Go-engineeringOct 26, 2026

工具链与持续更新:gopls、pkg.go.dev 与版本跟进

同一份代码,两位开发者看到的诊断结果不同,最常见的成因是两侧 gopls 版本不一致。围绕这一现象,工具链的分工可以概括为:gopls 负责本地已解析的代码与依赖,版本由 go.mod 选定、go.sum 校验;pkg.go.dev 负责尚未进入 go.mod 的包,提供版本、许可证与健康度信息;版本跟进决定前两者何时需要更新。

9 min read

Quote of the day · November 15关于接受Breaking Bad

You got the job. Do yourself a favor and learn to take yes for an answer.