mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-07-20 10:04:08 +00:00
make tests happy
This commit is contained in:
parent
1f2c76e63d
commit
650f492d7d
9 changed files with 27 additions and 210 deletions
|
@ -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) },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue