Skip to content
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

Support maps with interface{} type keys #179

Conversation

hairyhenderson
Copy link

Fixes #178

This allows map[interface{}]interface{} to be encoded, if each and every key can be coerced to be a string. See #178 for more explanation.

Signed-off-by: Dave Henderson [email protected]

@hairyhenderson
Copy link
Author

cc @BurntSushi - is it possible to merge this? Or is there anything else you need me to do to get this merged?

@hairyhenderson hairyhenderson force-pushed the support-map-interface-keys branch from 44f109f to d1df168 Compare March 3, 2018 13:18
@hairyhenderson hairyhenderson force-pushed the support-map-interface-keys branch from d1df168 to 2a4f3b6 Compare October 4, 2019 03:45
@arp242
Copy link
Collaborator

arp242 commented Jun 8, 2021

Closing this per the comment on #178 (comment)

@arp242 arp242 closed this Jun 8, 2021
@hairyhenderson hairyhenderson deleted the support-map-interface-keys branch June 9, 2021 11:47
@hairyhenderson hairyhenderson restored the support-map-interface-keys branch September 23, 2021 22:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Can't encode a map with interface{} keys, even if the keys are strings
2 participants