make tests happy

This commit is contained in:
Hunter Kehoe 2025-07-07 22:47:41 -06:00
parent 1f2c76e63d
commit 650f492d7d
9 changed files with 27 additions and 210 deletions

View file

@ -11,6 +11,8 @@ import (
"strings"
ttemplate "text/template"
"time"
"golang.org/x/text/cases"
)
// FuncMap produces the function map.
@ -107,7 +109,7 @@ var genericMap = map[string]interface{}{
"trim": strings.TrimSpace,
"upper": strings.ToUpper,
"lower": strings.ToLower,
"title": strings.Title,
"title": cases.Title,
"substr": substring,
// Switch order so that "foo" | repeat 5
"repeat": func(count int, str string) string { return strings.Repeat(str, count) },