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 +}