Use title rather than toTitle.
It turns out that 'title case' is a thing in unicode, in the same way upper/lower case is. What our users will want is the first character of a word being titlecased, which `title` will do.
This commit is contained in:
parent
03a270910d
commit
71a1c76e52
|
@ -93,7 +93,7 @@ type FuncMap map[string]interface{}
|
|||
var DefaultFuncs = FuncMap{
|
||||
"toUpper": strings.ToUpper,
|
||||
"toLower": strings.ToLower,
|
||||
"toTitle": strings.ToTitle,
|
||||
"title": strings.Title,
|
||||
// sortedPairs allows for in-order iteration of key/value pairs.
|
||||
"sortedPairs": func(m map[string]string) []Pair {
|
||||
var (
|
||||
|
|
Loading…
Reference in New Issue