Hacker News new | ask | show | jobs
by mappu 1240 days ago
This is days later, sorry, but - you can't use an interface as a map key, so this shouldn't apply, right?
1 comments

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.