1
0
Fork 0
mirror of https://github.com/Luzifer/go-holidays.git synced 2024-12-25 21:31:17 +00:00

Update lib

This commit is contained in:
Knut Ahlers 2016-09-24 14:29:13 +02:00
parent 494749a578
commit 4067a197da
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E
2 changed files with 2 additions and 2 deletions

View file

@ -5,7 +5,7 @@
"Deps": [ "Deps": [
{ {
"ImportPath": "github.com/Luzifer/go-holidays", "ImportPath": "github.com/Luzifer/go-holidays",
"Rev": "7cac4348d52c138f43b3e182e1d87e88a75b893a" "Rev": "494749a5786c8f8db159d05e8699a22ab3eec030"
}, },
{ {
"ImportPath": "github.com/Luzifer/rconfig", "ImportPath": "github.com/Luzifer/rconfig",

View file

@ -28,7 +28,7 @@ type Holiday struct {
type holidays []Holiday type holidays []Holiday
func (h holidays) Len() int { return len(h) } 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] } 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 // GetHolidays returns the holidays for the given ISO 3166-2 countryCode and year