Hacker News new | ask | show | jobs
by simiones 1990 days ago
In addition to that, map[T]bool only works if T is one of the few types that Go can check for equality automatically. You can't define a custom equality (+hash) function for your type and use it with the built-in map.