Skip to content

Commit f73d957

Browse files
committed
Adding 'replace' as a template-usable function
1 parent 2847e7b commit f73d957

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

template.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,7 @@ func generateFile(config Config, containers Context) bool {
6363
"groupBy": groupBy,
6464
"groupByMulti": groupByMulti,
6565
"split": strings.Split,
66+
"replace": strings.Replace,
6667
}).ParseFiles(templatePath)
6768
if err != nil {
6869
log.Fatalf("unable to parse template: %s", err)

0 commit comments

Comments
 (0)