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:
commit
c6a4c09c13
@ -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.
|
||||
|
||||
|
@ -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,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user