Skip to content

golang map 实现原理初探 | 朱晓峰 #12

Description

@shafferjohn

https://shaffer.cn/golang/golang-map-touch/#more

最近一直在学习golang,本文是对于golang中map的实现原理的一次初探,我个人觉得原理比具体代码实现更有价值,所以主要探究原理,如有错误,敬请斧正。 本文基于go 1.14.2版本 是什么Map本文所讨论的Map是一种key-value键值对的存储结构,其中key是不能重复的。 实现的关键是哈希表,hash表的输入一般都大于输出,所以要解决冲突。

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions