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:
Brian Brazil 2015-11-28 10:16:13 +00:00
parent 03a270910d
commit 71a1c76e52
1 changed files with 1 additions and 1 deletions

View File

@ -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 (