Hacker News new | ask | show | jobs
by yencabulator 1632 days ago
The map key type can be anything for which `==` is defined. This includes structs for which `==` is defined for every field. Composite keys etc are trivial.

https://go.dev/ref/spec#Map_types