mirror of
https://github.com/muhac/chinese-holidays-calendar.git
synced 2024-11-27 01:50:00 +08:00
16 lines
328 B
Go
16 lines
328 B
Go
package main
|
|
|
|
import (
|
|
"main/parse/base"
|
|
"main/parse/core"
|
|
)
|
|
|
|
func main() {
|
|
holidays := core.Data().ReadFrom(base.SourceDir).Parse().Sort().Get()
|
|
|
|
holidays.Print("==== HOLIDAYS ====")
|
|
|
|
core.Data(holidays).WriteTo(base.IndexPage).Format(base.ICS).Set()
|
|
core.Data(holidays).WriteTo(base.HolidayICS).Format(base.ICS).Set()
|
|
}
|