摘要: ## go map 源码阅读 * 内存布局:golang中的map是怎么组成的 * 初始化 * 设置map值 * 获取map值 * 迭代map * 为什么迭代顺序每次都不一样 * 扩容 * 什么时候才会扩容 * 为什么是渐进式扩容 #### 源码地址 **src/runtime/map.go** # 阅读全文
posted @ 2023-06-25 14:44 CK..Soul 阅读(14) 评论(0) 推荐(0) 编辑
摘要: ### Linux 导入 ![Tux](https://gitee.com//soulsu/tuci/raw/master/img/20200524143850.png) #### 大纲 - 发展历史 - 系统目录结构 - Shell 之 Bash - 常用命令分享 #### 发展历史 ##### 阅读全文
posted @ 2023-06-25 14:43 CK..Soul 阅读(6) 评论(0) 推荐(0) 编辑
摘要: # go 使用 unsafe 包进行指针操作 go 语言中没有直接提供指针操作,但是提供了 `unsafe` 包可以对指针进行转换 ```go // - A pointer value of any type can be converted to a Pointer. // - A Pointer 阅读全文
posted @ 2023-06-25 11:46 CK..Soul 阅读(23) 评论(0) 推荐(0) 编辑
more_horiz
keyboard_arrow_up dark_mode palette
选择主题
点击右上角即可分享
微信分享提示