Skip to content

Commit

Permalink
Add alias for lowercase and uppercase.
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickdappollonio committed Oct 4, 2022
1 parent f35a2f4 commit 71bb5ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions template_functions.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@ func getTemplateFunctions(virtualKV map[string]string, strict bool) template.Fun
// Go built-ins
"lowercase": strings.ToLower,
"lower": strings.ToLower,
"tolower": strings.ToLower,
"uppercase": strings.ToUpper,
"upper": strings.ToUpper,
"toupper": strings.ToUpper,
"title": cases.Title,
"sprintf": fmt.Sprintf,
"printf": fmt.Sprintf,
Expand Down

0 comments on commit 71bb5ad

Please sign in to comment.