Add types needed to represent Orthodox holidays

This commit is contained in:
Petar Kapriš 2025-08-24 18:55:36 +02:00
parent 1bbb015a29
commit b18e579057

31
holy/holy.go Normal file
View file

@ -0,0 +1,31 @@
package holy
// Public
/*
A database for all descriptions of feasts in the recently viewed years.
When a new year is viewed by the user, a table is generated specifically for
that year.
*/
var FeastDatabase map[int]([365]DateInfo) = make(map[int]([365]DateInfo))
const (
normalLetter = iota
thickLetter
redLetter
)
// The DateInfo type holds all relevant information for a given date, needed to display it in the church calendar
type DateInfo struct {
lenten bool
color int
details []feasts
}
// The Feast type holds the name and detailed description of a given holiday
// TODO: this type will eventually be expanded to hold a relevant icon/image
type Feast struct {
name string
description string
}