Skip to content

Commit

Permalink
feat(gen): use "gen" postfix for generated client
Browse files Browse the repository at this point in the history
Fix #6
  • Loading branch information
ernado committed Dec 5, 2020
1 parent 833a690 commit 94d683d
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmd/gotdgen/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ func main() {
if !strings.HasSuffix(name, "_gen.go") {
continue
}
if !strings.HasPrefix(name, "tl_") && name != "rpc_gen.go" {
if !strings.HasPrefix(name, "tl_") {
continue
}
if err := os.Remove(filepath.Join(*targetDir, name)); err != nil {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion internal/gen/write_source.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func (g *Generator) WriteSource(fs FileSystem, pkgName string, t *template.Templ
if err := t.ExecuteTemplate(buf, "client", cfg); err != nil {
return err
}
if err := fs.WriteFile("tl_client.go", buf.Bytes()); err != nil {
if err := fs.WriteFile("tl_client_gen.go", buf.Bytes()); err != nil {
return err
}

Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit 94d683d

Please sign in to comment.