go_weekly_2025-10-23

2025-10-22 00:00

原文链接

精选

1. The Draft Go 1.26 Release Notes

Go 1.26 草案发布,支持 new 表达式等增强功能,预计2026年2月发布。


2. The Speed of Random Number Generators

性能测试显示 math/rand/v2 使用 PCG 算法是最快的随机数生成方案。


3. The ‘Compare IP Subnets’ Proposal

Go 1.26 将简化 IP 子网比较(如 10.0.0.0/8),提升网络编程体验。


4. gotests: Automatically Generate Test Boilerplate From Code

v1.8.0 全面支持泛型,可为泛型函数和方法自动生成表驱动测试代码。


5. Writing Better Go: Lessons from 10 Code Reviews

基于真实代码审查经验总结的 Go 最佳实践,包含实用改进建议。


其它

1. The “10x” Commandments of Highly Effective Go

十条 Go 开发准则,配合 GoLand IDE 示例,提升编码效率和质量。


2. urfave/cli 3.1: A Declarative Way to Build Go CLI Apps

声明式构建 CLI 应用,支持自动补全、选项解析和帮助文本生成。


3. go-torch: Torch-Like Deep Learning Framework in Go

纯 Go 实现的深度学习框架,提供类似 PyTorch 的开发体验。


4. superfile: Go-Powered Terminal-Based File Manager

基于 Bubble Tea 的现代化终端文件管理器,支持主题定制。


5. Durable Background Execution with Go and SQLite

使用 Go 和 SQLite 实现持久化后台任务执行,确保任务可靠性。


6. JWT Authentication in Go with Gin

基于 Gin 框架实现 JWT 认证,可扩展至其他应用场景。


7. go-nvtrust: NVIDIA GPU and NVSwitch Confidential Computing Attestation

Go 版 NVIDIA 可信计算证明工具,用于 GPU 机密计算验证。