Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/soh335/shukujitsu


https://github.com/soh335/shukujitsu

golang holiday

Last synced: 23 days ago
JSON representation

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.csv

When 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!")
}
```