updated app.go

This commit is contained in:
2025-02-26 05:09:17 +01:00
parent eeab4c25cb
commit 3cadf06599
6 changed files with 374 additions and 208 deletions
-17
View File
@@ -4,7 +4,6 @@ import (
"fmt"
"log/slog"
"regexp"
"strconv"
"strings"
"time"
"unicode"
@@ -58,19 +57,3 @@ func Slugify(s string) string {
return s
}
func isMn(r rune) bool {
return unicode.Is(unicode.Mn, r)
}
func FormatDateSpanish(date time.Time) string {
months := []string{"enero", "febrero", "marzo", "abril", "mayo", "junio", "julio", "agosto", "septiembre", "octubre", "noviembre", "diciembre"}
days := []string{"domingo", "lunes", "martes", "miércoles", "jueves", "viernes", "sábado"}
dayName := days[date.Weekday()]
day := date.Day()
month := months[date.Month()-1]
year := date.Year()
return dayName + ", " + strconv.Itoa(day) + " de " + month + " de " + strconv.Itoa(year)
}