Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/hlts2/goliday
- Owner: hlts2
- License: mit
- Created: 2019-01-10T00:49:00.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-02-04T06:15:10.000Z (almost 4 years ago)
- Last Synced: 2024-04-18T17:12:11.615Z (7 months ago)
- Topics: golang, golang-library, goliday-jp, hlts2, holiday-japan, holiday-jp, holidays, japanese, japanese-holiday, japanese-holidays
- Language: Go
- Homepage:
- Size: 49.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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