From 69d113a46d4b754805650dc57cf367974a3fe92a Mon Sep 17 00:00:00 2001 From: kim Date: Tue, 11 Aug 2020 11:07:47 +0800 Subject: [PATCH] fix windows slash --- tools/goctl/api/gogen/util.go | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/goctl/api/gogen/util.go b/tools/goctl/api/gogen/util.go index 44d8a6fd..5e52bb2c 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, `\`, `/`) absDir = strings.ReplaceAll(absDir, `\`, `/`) var rootPath string