From ace125f189620132bb3896ac0762cacb90f50993 Mon Sep 17 00:00:00 2001 From: raymonder jin Date: Thu, 23 Feb 2023 14:36:58 +0800 Subject: [PATCH] del unnecessary blank --- readme-cn.md | 10 +++++----- readme.md | 12 ++++++------ 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/readme-cn.md b/readme-cn.md index 1d691c2c..3a992b76 100644 --- a/readme-cn.md +++ b/readme-cn.md @@ -20,9 +20,9 @@ > ***注意:*** > > 从 v1.3.0 之前版本升级请执行以下命令: -> +> > `GOPROXY=https://goproxy.cn/,direct go install github.com/zeromicro/go-zero/tools/goctl@latest` -> +> > `goctl migrate —verbose —version v1.4.3` ## 0. go-zero 介绍 @@ -121,10 +121,10 @@ GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/zeromicro ```shell # Go 1.15 及之前版本 GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/zeromicro/go-zero/tools/goctl@latest - + # Go 1.16 及以后版本 GOPROXY=https://goproxy.cn/,direct go install github.com/zeromicro/go-zero/tools/goctl@latest - + # For Mac brew install goctl @@ -200,7 +200,7 @@ GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/zeromicro * [快速构建高并发微服务 - 多 RPC 版](https://github.com/zeromicro/zero-doc/blob/main/docs/zero/bookstore.md) * [goctl 使用帮助](https://github.com/zeromicro/zero-doc/blob/main/doc/goctl.md) * [Examples](https://github.com/zeromicro/zero-examples) - + * 精选 `goctl` 插件 | 插件 | 用途 | diff --git a/readme.md b/readme.md index 87d5e956..53776950 100644 --- a/readme.md +++ b/readme.md @@ -129,10 +129,10 @@ goctl migrate —verbose —version v1.4.3 ```shell # for Go 1.15 and earlier GO111MODULE=on go get -u github.com/zeromicro/go-zero/tools/goctl@latest - + # for Go 1.16 and later go install github.com/zeromicro/go-zero/tools/goctl@latest - + # For Mac brew install goctl @@ -156,24 +156,24 @@ goctl migrate —verbose —version v1.4.3 Request { Name string `path:"name,options=[you,me]"` // parameters are auto validated } - + Response { Message string `json:"message"` } ) - + service greet-api { @handler GreetHandler get /greet/from/:name(Request) returns (Response) } ``` - + the .api files also can be generated by goctl, like below: ```shell goctl api -o greet.api ``` - + 4. generate the go server-side code ```shell