Re:Why I Don't Like Golang (2016)
by yencabulator on Tuesday June 14, 2022 @11:20AM
(#31740781)
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