make goctl work on linux

This commit is contained in:
kevin
2020-08-30 16:37:34 +08:00
parent 3c688c319e
commit 431be8ed9d
4 changed files with 9 additions and 3 deletions

View File

@@ -45,7 +45,7 @@ func (g *defaultRpcGenerator) mustGetPackage(dir string) string {
switch os {
case "windows":
relativePath = filepath.ToSlash(relativePath)
case "darwin":
case "darwin", "linux":
default:
g.Ctx.Fatalln("unexpected os: %s", os)
}