We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1a7d0fb commit d8e9541Copy full SHA for d8e9541
options/options_generator.go
@@ -27,7 +27,6 @@ import (
27
"html/template"
28
"log"
29
"os"
30
- "path"
31
"reflect"
32
"strings"
33
)
@@ -169,7 +168,7 @@ func (g *Generator) forMart() []byte {
169
168
func (g *Generator) SetOutPath(outPath *string) {
170
fileName := fmt.Sprintf("opt_%s_gen.go", stringx.CamelToSnake(g.StructInfo.StructName))
171
if len(*outPath) > 0 {
172
- g.outPath = path.Join(*outPath, fileName)
+ g.outPath = *outPath
173
} else {
174
g.outPath = fileName
175
}
0 commit comments