-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
refactor(container/gtree): refactor code with gods package #3595
Conversation
It may take some time reviewing. |
依赖了这个包, |
@houseme gf 引用的是 |
@houseme gf refers to the |
新版是使用了go语言的 |
Dear review:
先实现了 gtree ,如果可以再进一步处理其他的。不过我觉得 IteratorFrom 相关的方法可以废弃掉@gqcn
重构使用了新的思路:
private
方法,比如doSet, doGet, doRemove
,它们用来和gods
底层交互,处理一些简单的逻辑判断;public
方法,比如Set, Get, SetOrGet
,它们用来调用私有方法实现框架功能,它们会携带框架相关逻辑,比如锁,gvar
。