Skip to content

Commit

Permalink
Update mod template extention (#76)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzungtran authored Jan 15, 2024
1 parent 925437a commit 8859e71
Show file tree
Hide file tree
Showing 11 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/mod/cmd/modgen.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ var modgenCmd = &cobra.Command{
}

for fn, c := range parsedFiles {
fn = strings.ReplaceAll(fn, ".gotpl", ".go")
fn = strings.ReplaceAll(fn, ".go.tpl", ".go")
fn = strings.ReplaceAll(fn, "placeholder", utils.ToSnake(tVars.SingularName))
err = ioutil.WriteFile(fn, []byte(c), 0644)
if err != nil {
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 8859e71

Please sign in to comment.