From 1d7bfb173f7ef278b5c541d3bad82973610650cb Mon Sep 17 00:00:00 2001 From: RichardHightower Date: Tue, 20 Dec 2016 10:35:13 -0800 Subject: [PATCH] Comparator for time. --- utils/comparator.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/comparator.go b/utils/comparator.go index ef5246a..b5f0f79 100644 --- a/utils/comparator.go +++ b/utils/comparator.go @@ -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 { aAsserted := a.(time.Time) bAsserted := b.(time.Time)