golang学习笔记——map类型
map数据类型
- 形式如 map[keyType]valueType 类型的数据
- 定义
- 遍历map以及判断值是否存在
- 删除键值 delete(map,key)
- map属于指针变量(函数传递属于引用传递)