Posted in

Go 1.21引入的slices包 vs 传统for循环:SortFunc、Clone、Contains等API的性能损耗基准测试

第一章:Go语言切片的核心语义与 … Go 1.21引入的slices包 vs 传统for循环:SortFunc、Clone、Contains等API的性能损耗基准测试Read more

Posted in

Go map做Set时的zero value陷阱:struct字段未初始化竟引发Set.contains永远返回false?

第一章:Go map做Set时的 … Go map做Set时的zero value陷阱:struct字段未初始化竟引发Set.contains永远返回false?Read more

Posted in

为什么你的Go map contains逻辑总出bug?5个高频踩坑场景,第3个连Golang官方文档都曾模糊表述

第一章:Go map判断key存 … 为什么你的Go map contains逻辑总出bug?5个高频踩坑场景,第3个连Golang官方文档都曾模糊表述Read more