-
Notifications
You must be signed in to change notification settings - Fork 46
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
x/hashlock package improvements #514
Comments
Let's just close this as we will delete the package in #540 |
This is actually a powerful go trick to make package local keys in context that no other package can read or write. Got this some years ago. Trick is keys in Context are interface{} which stores type info, and nothing can force a collision with a private type. |
ah, I didn't really know this. Cool! |
ctx.Value(contextKeyPreimage)
as this seems to be global to the context and using iota (0) in this case. I would much rather prefer a format ofextension:variable
The text was updated successfully, but these errors were encountered: