Y
Hacker News
new
|
ask
|
show
|
jobs
by
farslan
4436 days ago
struct{} is better because it doesn't do an allocating. See:
https://github.com/fatih/set/blob/master/set_ts.go#L18