-
Notifications
You must be signed in to change notification settings - Fork 22
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
获取xmap中所有数据 怎么获取 #4
Comments
参考: https://github.com/heiyeluren/xds/blob/177aea6e371a0525bdaf2616832f25075ec153ee/xmap/xmap.go#L89 |
Get(key interface{}) 是获取单条数据吧 我不是很理解怎么用可以获取全部 |
可以获取,调用Each()接口,可以访问全部的元素:
|
具体也可以访问这个测试代码,中间有 Each() 使用案例: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
No description provided.
The text was updated successfully, but these errors were encountered: