1
0
mirror of https://github.com/regclient/regclient.git synced 2025-04-18 22:44:00 +03:00

Merge pull request #194 from sudo-bmitch/pr-deprecate-title

Remove deprecated title template function
This commit is contained in:
Brandon Mitchell 2022-03-31 10:56:40 -04:00 committed by GitHub
commit c6a4c09c13
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 0 additions and 3 deletions

View File

@ -59,8 +59,6 @@ The following functions have been added in addition to the defaults available in
Returns current time object, e.g. `{{ $t := time.Now }}{{printf "%d%d%d" $t.Year $t.Month $t.Day}}`.
- `time.Parse`:
Parses string using layout into time object, e.g. `{{ $t := time.Parse "2006-01-02" "2020-06-07"}}`.
- `title`:
Makes the first letter of each word uppercase.
- `upper`:
Converts a string to uppercase.

View File

@ -49,7 +49,6 @@ var tmplFuncs = gotemplate.FuncMap{
"lower": strings.ToLower,
"split": strings.Split,
"time": func() *TimeFuncs { return &TimeFuncs{} },
"title": strings.Title,
"upper": strings.ToUpper,
}