go_weekly_2025-07-02

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. Charm Fang: A CLI Starter Kit for Cobra Apps

基于 Cobra 的 CLI 增强工具,内置精美输出、手册生成和自动补全等开箱即用功能。


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

深入探讨 Go 汇编中指针存储的底层实现,适合需要与运行时直接交互的场景。


5. Cloud66’s Go Stack in 2025

实战分享:配置管理、CLI/HTTP 框架、ORM 等关键组件的现代选型方案。


其它

1. Eliminating Dead Code in Go Projects

官方 deadcode 工具实战:识别并清理不可达代码。


2. Unregistry: Push Docker Images Directly to Remote Servers

轻量级容器镜像仓库,直接从 Docker 存储层提供镜像服务。


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

提倡用并行安全的数据夹具替代模拟数据库的测试实践。