随笔分类 -  golang / map

摘要:map定义 map是一种key-value键值对的存储结构,其中key是不能重复的,其底层实现采用的是hash表。 map的数据结构 首先我们先列出源码结构关键字段,实现在 src/runtime/map.go: type hmap struct { count int // 元素的个数 B uin 阅读全文
posted @ 2025-04-07 17:13 搁浅~浅浅浅 阅读(289) 评论(0) 推荐(0)