Comparator for time.

pull/42/head
RichardHightower 9 years ago
parent d036ecbbb9
commit 1d7bfb173f

@ -53,7 +53,7 @@ func IntComparator(a, b interface{}) int {
} }
} }
// IntComparator provides a basic comparison on int // TimeComparator provides a basic comparison on time.Time
func TimeComparator(a, b interface{}) int { func TimeComparator(a, b interface{}) int {
aAsserted := a.(time.Time) aAsserted := a.(time.Time)
bAsserted := b.(time.Time) bAsserted := b.(time.Time)

Loading…
Cancel
Save