Closed
Description
Go 夜读第 53 期 delete from map in go
突然有一个需求要删除 map 中的一些过滤数据。
由此查阅了一些资料,然后促成此次分享。
PPT:
build-in func delete from map in go.pptx
分享时间
2019-08-01 21:00:00
分享平台
zoom 在线直播 - https://zoom.us/j/6923842137
参考资料
- https://stackoverflow.com/questions/1736014/delete-mapkey-in-go
- https://blog.cyeam.com/json/2017/11/02/go-map-delete
- https://blog.golang.org/go-maps-in-action
- https://gobyexample.com/maps
- https://stackoverflow.com/questions/23229975/is-it-safe-to-remove-selected-keys-from-map-within-a-range-loop
- https://www.cnblogs.com/qcrao-2018/p/10903807.html
- https://appdividend.com/2019/05/12/golang-maps-tutorial-with-examples-maps-in-go-explained/
- https://www.jianshu.com/p/92e9efec8688
- https://www.reddit.com/r/golang/comments/5tfx7i/why_delete_doesnt_return_a_bool/
- https://www.liwenzhou.com/posts/Go/08_map/
- https://github.com/EDDYCJY/blog/tree/master/map
Metadata
Metadata
Assignees
Type
Projects
Milestone
Relationships
Development
No branches or pull requests
Activity
[-]【Go 夜读】#53 delete from map in go[/-][+]【Go 夜读】第 53 期 delete from map in go[/+]Bingao-hn commentedon Aug 2, 2019
请问每期有录视频吗,在哪儿能找到呢?
yangwenmai commentedon Aug 2, 2019
Create 关于map中删除元素后内存释放问题.md
Allenxuxu commentedon Aug 21, 2019
@yangwenmai 大佬,非常感谢做了一个这么棒的分享! 想请教一个问题:
如果需要一个长期持有的 map,经常做一些 添加,删除 的操作。 而 delete 只能标记删除,并不会释放内存,这不是会造成内存一直涨下去吗? 有什么比较优雅的方法处理呢?
yangwenmai commentedon Aug 21, 2019
http://lessisbetter.site/2018/09/29/go-map-delete/
Allenxuxu commentedon Aug 21, 2019
非常感谢
[-]【Go 夜读】第 53 期 delete from map in go[/-][+]第 53 期 delete from map in go[/+]