remove ginext/mongoext (no-dep lib)

This commit is contained in:
2022-10-27 16:07:42 +02:00
parent 568d7bd5e3
commit 47f123b86f
31 changed files with 6 additions and 123 deletions

23
timeext/translation.go Normal file
View File

@@ -0,0 +1,23 @@
package timeext
import (
"strconv"
"time"
)
var longDayNames = []string{
"Sonntag",
"Montag",
"Dienstag",
"Mittwoch", // meine Kerle
"Donnerstag",
"Freitag",
"Samstag",
}
func WeekdayNameGerman(d time.Weekday) string {
if time.Sunday <= d && d <= time.Saturday {
return longDayNames[d]
}
return "%!Weekday(" + strconv.Itoa(int(d)) + ")"
}