mirror of
https://github.com/Crocmagnon/display-epaper.git
synced 2024-11-22 22:18:03 +01:00
33 lines
677 B
Go
33 lines
677 B
Go
package quotes
|
|
|
|
import "time"
|
|
|
|
func GetQuote(date time.Time) string {
|
|
switch date.Month() {
|
|
case time.January:
|
|
return january[date.Day()]
|
|
case time.February:
|
|
return february[date.Day()]
|
|
case time.March:
|
|
return march[date.Day()]
|
|
case time.April:
|
|
return april[date.Day()]
|
|
case time.May:
|
|
return may[date.Day()]
|
|
case time.June:
|
|
return june[date.Day()]
|
|
case time.July:
|
|
return july[date.Day()]
|
|
case time.August:
|
|
return august[date.Day()]
|
|
case time.September:
|
|
return september[date.Day()]
|
|
case time.October:
|
|
return october[date.Day()]
|
|
case time.November:
|
|
return november[date.Day()]
|
|
case time.December:
|
|
return december[date.Day()]
|
|
}
|
|
return ""
|
|
}
|