Hacker News new | ask | show | jobs
by simiones 1938 days ago
Unfortunately, map[t]bool (or map[t]struct{}) only works for special structs that happen to have equality defined for them. It's not a general purpose solution, it's just a hack.