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
proposal: sync: define marshal/unmarshal methods for Map #31136
Comments
CC @bcmills |
I don't see how we would implement That would mean that I guess that |
The same way
That is already the case for |
The key difference vs. |
Note that if you want a marshal'able sync.Map you can always write your own type that embeds a sync.Map and adds whatever specific serialized format you need. Adding that specifically to package sync is a bit of a layer inversion. Sync is about synchronizing the map, not serialization formats. |
What version of Go are you using (
go version
)?How about to having sync.Map JSON Marshal methods and it doesn't have to prepare manually like the following conversation.
The text was updated successfully, but these errors were encountered: