go_weekly_2025-07-01

2025-06-25 00:00

原文链接

精选

1. JSON Evolution in Go: From V1 to V2

Go 1.25 的 JSON v2 包带来 10 倍解析加速、流式 API 等改进,实用升级指南。


2. Finding Performance Problems by Diffing Two Go Profiles

使用 pprof 对比分析两份性能数据,快速定位硬编码参数导致的性能瓶颈。


3. Cloud66’s Go Stack in 2025

团队实战分享:2025 年 Go 技术栈选型(配置管理、CLI、HTTP 框架等)。


4. Charm Fang: A CLI Starter Kit for Cobra Apps

基于 Cobra 的 CLI 开发套件,内置高级输出、手册生成等开箱即用功能。


5. Unregistry: Push Docker Images Directly to Remote Servers

轻量容器镜像仓库,直接从 Docker 存储推送/拉取镜像,获 Docker 创始人点赞。


其它

1. How to Store Go Pointers from (Go) Assembly

深度指南:在 Go 汇编中操作指针并与运行时交互,适合底层开发。


2. Eliminating Dead Code in Go Projects

使用官方 deadcode 工具识别无用代码,保持代码库精简。


3. makefile-graph: Turn a Makefile into a Graph

将 Makefile 目标关系可视化生成 Graphviz 图表,支持库/CLI 两种用法。


4. quic-go 0.53

纯 Go QUIC 实现迎来大规模重构,性能与稳定性提升。


5. Parser: SQL-like Query for Go Struct Slices

用类 SQL 语法过滤结构体切片,实验性库值得关注。


6. SSHTron: Multiplayer Tron over SSH

通过 SSH 连接的多人贪吃蛇游戏,极客趣味项目。


7. Don’t Mock the Database: Data Fixtures are Parallel Safe and Fast

用数据夹具替代模拟数据库,实现并行测试加速。