Skip to content

Commit

Permalink
Merge pull request #1610 from Neokil/generate-better-comments-for-req…
Browse files Browse the repository at this point in the history
…uire-package

Generate better comments for require package
  • Loading branch information
brackendawson authored Oct 23, 2024
2 parents a012e45 + f9ccf14 commit 75a239b
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 184 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 75a239b

Please sign in to comment.