fix goctl path issue on windows

This commit is contained in:
kevin
2020-08-10 17:26:47 +08:00
parent 82ea0fff17
commit ba636187ce
7 changed files with 22 additions and 49 deletions

View File

@@ -10,6 +10,12 @@ import (
"github.com/tal-tech/go-zero/tools/goctl/vars"
)
const pkgSep = "/"
func JoinPackages(pkgs ...string) string {
return strings.Join(pkgs, pkgSep)
}
func MkdirIfNotExist(dir string) error {
if len(dir) == 0 {
return nil