package
module
Version:
v0.0.7
Opens a new window with list of versions in this module.
Published: Feb 5, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
shukujitsu
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.
HOW TO USE
if shukujitsu.IsShukujitsu(time.Now()) {
fmt.Println("shukujitsu!")
}
Documentation
¶
Code generated by internal/gen/gen.go; DO NOT EDIT.
IsShukujitsu determines shukujitsu.
This function don't care timezone of arguments time.
So you need to care your timezone.
RunCLI runs shukujitsu CLI.
return values
0 : is Shukujitsu
1 : is not Shukujitsu
2 : parse error of -d (date)
CLIOption represents an option for CLI.
Source Files
¶
Directories
¶
cmd
|
|
|
|
internal
|
|
|
|
Click to show internal directories.
Click to hide internal directories.