https://github.com/ka10uta/goholiday
Calculating (holiday, business) days support for golang (Go language).
https://github.com/ka10uta/goholiday
go golang holiday
Last synced: 6 months ago
JSON representation
Calculating (holiday, business) days support for golang (Go language).
- Host: GitHub
- URL: https://github.com/ka10uta/goholiday
- Owner: ka10uta
- License: mit
- Created: 2017-09-30T06:26:00.000Z (almost 9 years ago)
- Default Branch: main
- Last Pushed: 2025-03-01T01:40:57.000Z (over 1 year ago)
- Last Synced: 2025-08-17T10:44:15.236Z (11 months ago)
- Topics: go, golang, holiday
- Language: Go
- Homepage:
- Size: 79.1 KB
- Stars: 31
- Watchers: 1
- Forks: 5
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Contributing: docs/CONTRIBUTING.md
- License: LICENSE
- Code of conduct: docs/CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# goholiday
[]()
[](https://github.com/yut-kt/goholiday/actions/workflows/default_branch_test.yaml)
[]()
[](https://goreportcard.com/report/github.com/yut-kt/goholiday)
[](https://godoc.org/github.com/yut-kt/goholiday)
[](LICENSE)
**Calculating (holiday, business) days support for golang (Go language).**
**Provide functions to calculate and judge the business days and holidays in each country.**
Currently, we only handle holidays for a few countries, but we plan to handle holidays for other countries in the future.
Please Contribute!
## Install
```bash
$ go install github.com/yut-kt/goholiday
```
## Suggested golang environment
go version >= 1.16.15
## Usage
- version >= v1.0.0
- look at [example test file](https://github.com/yut-kt/goholiday/blob/main/goholiday_example_test.go) or [godoc example](https://godoc.org/github.com/yut-kt/goholiday)
- version = v0.x.x (deprecated)
- look at [docs/v0.md](docs/v0.md)
## Supported ccTLD
```
support 2022, 2023
|- am (Armenia)
|- do (Dominican Republic)
|- gr (Greece)
|- jp (Japan)
|- sg (Singapore)
|- uk (United Kingdom)
|- England
|- NorthernIreland
|- Scotland
|- Wales
```
## Contribution
[CONTRIBUTING.md](docs/CONTRIBUTING.md)
## License
goholiday is released under the [MIT License](LICENSE).