display-epaper/quotes/quotes.go

34 lines
701 B
Go
Raw Normal View History

2024-09-15 23:55:31 +02:00
package quotes
2024-09-16 00:11:23 +02:00
import "time"
func GetQuote(date time.Time) string {
switch date.Month() {
case time.January:
2024-10-31 09:42:56 +01:00
return january[date.Day()-1]
2024-09-16 00:11:23 +02:00
case time.February:
2024-10-31 09:42:56 +01:00
return february[date.Day()-1]
2024-09-16 00:11:23 +02:00
case time.March:
2024-10-31 09:42:56 +01:00
return march[date.Day()-1]
2024-09-16 00:11:23 +02:00
case time.April:
2024-10-31 09:42:56 +01:00
return april[date.Day()-1]
2024-09-16 00:11:23 +02:00
case time.May:
2024-10-31 09:42:56 +01:00
return may[date.Day()-1]
2024-09-16 00:11:23 +02:00
case time.June:
2024-10-31 09:42:56 +01:00
return june[date.Day()-1]
2024-09-16 00:11:23 +02:00
case time.July:
2024-10-31 09:42:56 +01:00
return july[date.Day()-1]
2024-09-16 00:11:23 +02:00
case time.August:
2024-10-31 09:42:56 +01:00
return august[date.Day()-1]
2024-09-16 00:11:23 +02:00
case time.September:
2024-10-31 09:42:56 +01:00
return september[date.Day()-1]
2024-09-16 00:11:23 +02:00
case time.October:
2024-10-31 09:42:56 +01:00
return october[date.Day()-1]
2024-09-16 00:11:23 +02:00
case time.November:
2024-10-31 09:42:56 +01:00
return november[date.Day()-1]
2024-09-16 00:11:23 +02:00
case time.December:
2024-10-31 09:42:56 +01:00
return december[date.Day()-1]
2024-09-16 00:11:23 +02:00
}
return ""
2024-09-15 23:55:31 +02:00
}