Add types needed to represent Orthodox holidays
This commit is contained in:
parent
1bbb015a29
commit
b18e579057
1 changed files with 31 additions and 0 deletions
31
holy/holy.go
Normal file
31
holy/holy.go
Normal 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
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue