20251201
每日一谚:Do not rely solely on unit tests; include integration and end-to-end tests
Brad Fitzpatrick 也等不及了!sync.Map 的泛型进化与 sync/v2 的诞生之路
随着 math/rand/v2 在 Go 1.22, json/v2 在 Go 1.25 中的成功落地,Go 标准库的 v2 化进程似乎已经按下了 加速键。今年1月份,Go 核心团队成员 Ian Lance Taylor 就提交了sync/v2 的提案 #71076。 这可不仅仅是一次简单的版本号升级,它标志着 Go 语言最核心的并发原语包,也终于要拥抱泛型,告别 interface{} 时代了。
Go 编译器崩溃背后:一个 append 函数引发的语言规范修正案
近期,Go 社区报告的一个 Bug #76220 和 Go 核心团队的后续跟进 ,为我们上演了一出精彩的“技术侦探剧”。这个故事不仅关乎一个 Bug 的修复,更深刻地揭示了 Go 语言规范的演进哲学:在语言的设计中,没有不言自明的“常识”,只有需要被精确定义的“规范”。
【Go 测试之道】09 Go 测试的“黑魔法”:覆盖率、Fuzzing 与 Golden Files
Go 仍然支持使用 GOPATH 构建非模块化程序
Go 1.18 发布时, 我曾说过它强制要求使用模块模式 ,我并不喜欢这一点,因为它在实践中可能会破坏向后兼容性 (而且将程序切换到 Go 模块并非易事 )。最近在 Fediverse 上, @thepudds 非常有帮助地让我明白我的想法并不完全正确,Go 仍然以某种方式支持非模块 GOPATH 的使用 ,事实上,根据 issue 60915 ,当前的支持将无限期地保留下来。
数学的架构——以及开发者如何在代码中使用它
“理解就是感知模式。” - 伊赛亚·柏林
数学不仅仅是数字。它是寻找塑造我们世界的复杂模式的科学。这意味着要真正理解它,我们需要超越数字、公式和定理,并理解它的结构。
这篇文章的主要目的是展示数学就像一棵不断增长的创意之树。我想展示数学是一个活生生的逻辑系统,而不仅仅是需要记住的公式。通过类比、历史和代码示例,我想帮助您更深入地理解数学以及如何将其应用于编程。
我还在这里包含了一些代码示例,以帮助您将理论与实践联系起来。我展示它们是为了演示如何将数学思想应用于实际问题。无论您是刚接触更高级的数学还是经验更丰富,这些代码示例都将帮助您了解如何在编程中应用数学。
CRDT字典:无冲突复制数据类型的领域指南
一份关于CRDT及其权衡的综合指南,从计数器到序列。以Typeclassopedia的精神编写,探讨了不同的CRDT如何解决分布式共识难题。
你真的需要微服务吗?
在您默认使用微服务之前,请权衡隐藏的成本,并考虑模块化整体架构或 SOA。了解 Docker 在没有蔓延的情况下,何时提供一致性和规模。
编写好的 CLAUDE.md
`CLAUDE.md` 是 Claude 代码的一个高杠杆配置点。学习如何编写一个好的 `CLAUDE.md`(或 `AGENTS.md`)是基于代理的软件工程的关键技能。
连续思维机器
引入连续思维机器:一种新型的神经网络模型,它展开并使用神经动力学作为一种强大的思维表示方式。该模型的核心在于将时间整合到人工智能中,通过神经动力学来增强其理解和交互能力。
google/adk-go
An open-source, code-first Go toolkit for building, evaluating, and deploying sophisticated AI agents with flexibility and control.
traefik/traefik
The Cloud Native Application Proxy
milvus-io/milvus
Milvus is a high-performance, cloud-native vector database built for scalable vector ANN search
fatedier/frp
A fast reverse proxy to help you expose a local server behind a NAT or firewall to the internet.
beclab/Olares
Olares: An Open-Source Personal Cloud to Reclaim Your Data
jesseduffield/lazydocker
The lazier way to manage everything docker
go-playground/validator
💯Go Struct and Field validation, including Cross Field, Cross Struct, Map, Slice and Array diving
containers/podman
Podman: A tool for managing OCI containers and pods.
open-telemetry/opentelemetry-collector
OpenTelemetry Collector
go-chi/chi
lightweight, idiomatic and composable router for building Go HTTP services
gin-gonic/gin
Gin is a high-performance HTTP web framework written in Go. It provides a Martini-like API but with significantly better performance—up to 40 times faster—thanks to httprouter. Gin is designed for building REST APIs, web applications, and microservices.
oauth2-proxy/oauth2-proxy
A reverse proxy that provides authentication with Google, Azure, OpenID Connect and many more identity providers.
putyy/res-downloader
视频号、小程序、抖音、快手、小红书、直播流、m3u8、酷狗、QQ音乐等常见网络资源下载!
cloudreve/cloudreve
🌩 Self-hosted file management and sharing system, supports multiple storage providers
hashicorp/consul
Consul is a distributed, highly available, and data center aware solution to connect and configure applications across dynamic, distributed infrastructure.
crossplane/crossplane
The Cloud Native Control Plane
moby/moby
The Moby Project - a collaborative project for the container ecosystem to assemble container-based systems
jmoiron/sqlx
general purpose extensions to golang's database/sql
influxdata/telegraf
Agent for collecting, processing, aggregating, and writing metrics, logs, and other arbitrary data.
Masterminds/squirrel
Fluent SQL generation for golang
temporalio/temporal
Temporal service
opencloud-eu/opencloud
🌤️This is the main repository of the OpenCloud server. It contains the golang codebase for the backend services.
jackc/pgx
PostgreSQL driver and toolkit for Go
编辑:Tony Bai
编辑主页:tonybai.com
GopherDaily项目:github.com/bigwhite/gopherdaily
Copyright 2019-2024 GopherDaily