Skip to content

Commit

Permalink
comments for the require package
Browse files Browse the repository at this point in the history
  • Loading branch information
parth-p-shah committed Oct 6, 2024
1 parent 50d5b7e commit da01020
Show file tree
Hide file tree
Showing 3 changed files with 176 additions and 172 deletions.
4 changes: 3 additions & 1 deletion _codegen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,9 @@ func parseTemplates() (*template.Template, *template.Template, error) {
}
funcTemplate = string(f)
}
tmpl, err := template.New("function").Parse(funcTemplate)
tmpl, err := template.New("function").Funcs(template.FuncMap{
"replace": strings.ReplaceAll,
}).Parse(funcTemplate)
if err != nil {
return nil, nil, err
}
Expand Down
Loading

0 comments on commit da01020

Please sign in to comment.