feat: import services and standardize Go 1.26.5

This commit is contained in:
2026-08-09 10:43:45 +08:00
parent 689c74b28f
commit 86024fa81d
1456 changed files with 220765 additions and 2 deletions

View File

@@ -0,0 +1,17 @@
package pages
import (
"regexp"
"strings"
)
func fmtKey(in string) string {
in = strings.ToLower(in)
in = strings.TrimSpace(in)
re := regexp.MustCompile(`\s+`)
in = re.ReplaceAllString(in, " ")
in = strings.ReplaceAll(in, " ", "-")
return in
}