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

Recommended way to insert nilables in hashmaps? #36582

Closed
mcandre opened this issue Jan 15, 2020 · 1 comment
Closed

Recommended way to insert nilables in hashmaps? #36582

mcandre opened this issue Jan 15, 2020 · 1 comment

Comments

@mcandre
Copy link

mcandre commented Jan 15, 2020

Sometimes when I try to define a simple struct key mapping to value nil in a map[TheStruct]error, then these keys appear to be missing from the resulting hashmap. What is the recommended way to manage complex keys and nilable values, for applications that don't want to drop these?

@bradfitz
Copy link
Contributor

For questions about Go, see https://golang.org/wiki/Questions.

@golang golang locked and limited conversation to collaborators Jan 14, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants