From b18e5790573407476e7753699ecdc7e403bcea4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petar=20Kapri=C5=A1?= Date: Sun, 24 Aug 2025 18:55:36 +0200 Subject: [PATCH] Add types needed to represent Orthodox holidays --- holy/holy.go | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 holy/holy.go diff --git a/holy/holy.go b/holy/holy.go new file mode 100644 index 0000000..aaafc46 --- /dev/null +++ b/holy/holy.go @@ -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 +}