ck/holy/holy.go
2025-08-24 18:55:36 +02:00

31 lines
726 B
Go

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
}