From 4067a197da2979db33e21a5f6874af5e059a7ace Mon Sep 17 00:00:00 2001 From: Knut Ahlers Date: Sat, 24 Sep 2016 14:29:13 +0200 Subject: [PATCH] Update lib --- cmd/holiday-api/Godeps/Godeps.json | 2 +- .../vendor/github.com/Luzifer/go-holidays/holiday.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmd/holiday-api/Godeps/Godeps.json b/cmd/holiday-api/Godeps/Godeps.json index a397b6d..28ca4f9 100644 --- a/cmd/holiday-api/Godeps/Godeps.json +++ b/cmd/holiday-api/Godeps/Godeps.json @@ -5,7 +5,7 @@ "Deps": [ { "ImportPath": "github.com/Luzifer/go-holidays", - "Rev": "7cac4348d52c138f43b3e182e1d87e88a75b893a" + "Rev": "494749a5786c8f8db159d05e8699a22ab3eec030" }, { "ImportPath": "github.com/Luzifer/rconfig", diff --git a/cmd/holiday-api/vendor/github.com/Luzifer/go-holidays/holiday.go b/cmd/holiday-api/vendor/github.com/Luzifer/go-holidays/holiday.go index 824b7d9..72d39bd 100644 --- a/cmd/holiday-api/vendor/github.com/Luzifer/go-holidays/holiday.go +++ b/cmd/holiday-api/vendor/github.com/Luzifer/go-holidays/holiday.go @@ -28,7 +28,7 @@ type Holiday struct { type holidays []Holiday func (h holidays) Len() int { return len(h) } -func (h holidays) Less(i, j int) bool { return h[i].Date.Before(h[j].Date) } +func (h holidays) Less(i, j int) bool { return h[i].Date < h[j].Date } func (h holidays) Swap(i, j int) { h[i], h[j] = h[j], h[i] } // GetHolidays returns the holidays for the given ISO 3166-2 countryCode and year