Skip to content

Commit db58d1f

Browse files
committed
Merge pull request #29 from alexturek/master
Adding 'replace' as a template-usable function
2 parents 2847e7b + f73d957 commit db58d1f

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)