Skip to content

Commit af0bfd6

Browse files
committed
Remove deprecated title template function
This was removed by Go upstream: golang/go#48367 Signed-off-by: Brandon Mitchell <[email protected]>
1 parent 828feca commit af0bfd6

File tree

2 files changed

+0
-3
lines changed

2 files changed

+0
-3
lines changed

docs/README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,6 @@ The following functions have been added in addition to the defaults available in
5959
Returns current time object, e.g. `{{ $t := time.Now }}{{printf "%d%d%d" $t.Year $t.Month $t.Day}}`.
6060
- `time.Parse`:
6161
Parses string using layout into time object, e.g. `{{ $t := time.Parse "2006-01-02" "2020-06-07"}}`.
62-
- `title`:
63-
Makes the first letter of each word uppercase.
6462
- `upper`:
6563
Converts a string to uppercase.
6664

pkg/template/template.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ var tmplFuncs = gotemplate.FuncMap{
4949
"lower": strings.ToLower,
5050
"split": strings.Split,
5151
"time": func() *TimeFuncs { return &TimeFuncs{} },
52-
"title": strings.Title,
5352
"upper": strings.ToUpper,
5453
}
5554

0 commit comments

Comments
 (0)