Skip to content

Commit d8e9541

Browse files
feat:
- outPath parameter fixed
1 parent 1a7d0fb commit d8e9541

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

options/options_generator.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ import (
2727
"html/template"
2828
"log"
2929
"os"
30-
"path"
3130
"reflect"
3231
"strings"
3332
)
@@ -169,7 +168,7 @@ func (g *Generator) forMart() []byte {
169168
func (g *Generator) SetOutPath(outPath *string) {
170169
fileName := fmt.Sprintf("opt_%s_gen.go", stringx.CamelToSnake(g.StructInfo.StructName))
171170
if len(*outPath) > 0 {
172-
g.outPath = path.Join(*outPath, fileName)
171+
g.outPath = *outPath
173172
} else {
174173
g.outPath = fileName
175174
}

0 commit comments

Comments
 (0)