Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hlts2/goliday

Go library for japanese holiday
https://github.com/hlts2/goliday

golang golang-library goliday-jp hlts2 holiday-japan holiday-jp holidays japanese japanese-holiday japanese-holidays

Last synced: 26 days ago
JSON representation

Go library for japanese holiday

Awesome Lists containing this project

README

        

# goliday [![GoDoc](http://godoc.org/github.com/hlts2/goliday?status.svg)](http://godoc.org/github.com/hlts2/goliday)

Go library for japanese holiday

## Usage

```go

package main

import (
"fmt"

"github.com/hlts2/goliday"
)

func main() {
holidays := goliday.Holidays(
goliday.WithYear(2050),
goliday.WithDay(11),
)

for _, holiday := range holidays {
fmt.Println(holiday)
}

ok := goliday.HasHoliday(
goliday.WithYear(2050),
goliday.WithMonth(11),
goliday.WithDay(23),
)

fmt.Println(ok) // true
}

```

## License

MIT

## Author

@hlts2