diff --git a/tools/goctl/api/gogen/util.go b/tools/goctl/api/gogen/util.go index 5b3b8274..55b65ff3 100644 --- a/tools/goctl/api/gogen/util.go +++ b/tools/goctl/api/gogen/util.go @@ -22,6 +22,7 @@ func getParentPackage(dir string) (string, error) { if err != nil { return "", err } + absDir = strings.ReplaceAll(absDir, `\`, `/`) var rootPath string var tempPath = absDir