3 ms·
FYI, to create a set in Go you can also use struct{} for the value. map[something]struct{}. The value takes up zero space then.
by kyrra 12y ago
FYI, to create a set in Go you can also use struct{} for the value. map[something]struct{}. The value takes up zero space then.