Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: