You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 9, 2019. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 9, 2019. It is now read-only.
Can I use the same key for nested bucket and filed in a bucket/ #728
How to understand the comments of bucket.Get mehod?
It says that Returns a nil value if the key does not exist or if the key is a nested bucket.,
Then if I could do something like those:
Well, I take a try and found that, it was forbid to use same key with conflict value. This maybe more rigovous, and I suggest that if you can add this as a notice to the code comments?
And in ForEach function, I found that the v param of the callback would be nil if it is actually a bucket, but nothing statement for this behavour in the comments found.
Activity
zhengxiaoyao0716 commentedon Sep 20, 2017
Well, I take a try and found that, it was forbid to use same key with conflict value. This maybe more rigovous, and I suggest that if you can add this as a notice to the code comments?
And in
ForEachfunction, I found that thevparam of the callback would be nil if it is actually a bucket, but nothing statement for this behavour in the comments found.