3 ms·
This is days later, sorry, but - you can't use an interface as a map key, so this shouldn't apply, right?
by mappu 4y ago
This is days later, sorry, but - you can't use an interface as a map key, so this shouldn't apply, right?
- erik_seaberg 4y agohttps://go.dev/ref/spec#Map_types https://go.dev/ref/spec#Map_types says that is allowed. > If the key type is an interface type, these comparison operators must be defined for the dynamic key values; failure will cause a run-time panic.