3 ms·
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. ht
by yencabulator 4y 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 https://go.dev/ref/spec#Map_types