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:
parent
494749a578
commit
4067a197da
2 changed files with 2 additions and 2 deletions
2
cmd/holiday-api/Godeps/Godeps.json
generated
2
cmd/holiday-api/Godeps/Godeps.json
generated
|
@ -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",
|
||||||
|
|
2
cmd/holiday-api/vendor/github.com/Luzifer/go-holidays/holiday.go
generated
vendored
2
cmd/holiday-api/vendor/github.com/Luzifer/go-holidays/holiday.go
generated
vendored
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue