rpc generation support windows (#28)

* add execute files

* add protoc-osx

* add rpc generation

* add rpc generation

* add: rpc template generation

* update usage

* fixed env prepare for project in go path

* optimize gomod cache

* add README.md

* format error

* reactor templatex.go

* remove waste code

* update project.go & README.md

* update project.go & README.md

* rpc generation supports windows
This commit is contained in:
Keson
2020-08-29 14:30:17 +08:00
committed by GitHub
parent 0cf4ed46a1
commit 0f97b2019a
5 changed files with 21 additions and 14 deletions

View File

@@ -88,9 +88,7 @@ func MustCreateRpcContext(protoSrc, targetDir, sharedDir, serviceName string, id
func MustCreateRpcContextFromCli(ctx *cli.Context) *RpcContext {
os := runtime.GOOS
switch os {
case "darwin":
case "windows":
logx.Must(fmt.Errorf("windows will support soon"))
case "darwin", "windows":
default:
logx.Must(fmt.Errorf("unexpected os: %s", os))
}