Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/soh335/shukujitsu
https://github.com/soh335/shukujitsu
golang holiday
Last synced: 23 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/soh335/shukujitsu
- Owner: soh335
- License: mit
- Created: 2020-11-17T14:53:08.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2024-02-05T00:41:29.000Z (10 months ago)
- Last Synced: 2024-10-11T21:11:50.174Z (about 1 month ago)
- Topics: golang, holiday
- Language: Go
- Homepage:
- Size: 39.1 KB
- Stars: 59
- Watchers: 4
- Forks: 7
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# shukujitsu
[![PkgGoDev](https://pkg.go.dev/badge/github.com/soh335/shukujitsu)](https://pkg.go.dev/github.com/soh335/shukujitsu) ![test](https://github.com/soh335/shukujitsu/workflows/test/badge.svg)
shukujitsu determines japanese holiday.
Holidays are collected from https://www8.cao.go.jp/chosei/shukujitsu/syukujitsu.csvWhen csv is updated, you can updated as follow command.
```
$ go run ./internal/gen/gen.go
```Currently, we check it per week at [here](https://github.com/soh335/shukujitsu/actions?query=workflow%3Aupdate).
## HOW TO USE
```go
if shukujitsu.IsShukujitsu(time.Now()) {
fmt.Println("shukujitsu!")
}
```