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

@@ -76,7 +76,7 @@ func MustCreateRpcContext(protoSrc, targetDir, serviceName string, idea bool) *R
func MustCreateRpcContextFromCli(ctx *cli.Context) *RpcContext {
os := runtime.GOOS
switch os {
case "darwin", "windows":
case "darwin", "linux", "windows":
default:
logx.Must(fmt.Errorf("unexpected os: %s", os))
}