3 ms·
Because it comes from a time when the go team was really enamored with using interfaces for logic. c.f. the sort package before the introduction of sort.Slice,
by tedunangst 3y ago
Because it comes from a time when the go team was really enamored with using interfaces for logic. c.f. the sort package before the introduction of sort.Slice, where you'd cast your slice to different types to get different sort functions.