Skip to content

Commit 0a063da

Browse files
authored
Make sure default output dir is set (goadesign#1750)
when using goagen programmatically.
1 parent beb2aa5 commit 0a063da

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

goagen/gen_main/generator.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ import (
2222

2323
//NewGenerator returns an initialized instance of a JavaScript Client Generator
2424
func NewGenerator(options ...Option) *Generator {
25-
g := &Generator{}
25+
g := &Generator{OutDir: "."}
2626

2727
for _, option := range options {
2828
option(g)

0 commit comments

Comments
 (0)