Przeglądaj źródła

del unnecessary blank

raymonder jin 2 lat temu
rodzic
commit
ace125f189
2 zmienionych plików z 11 dodań i 11 usunięć
  1. 5 5
      readme-cn.md
  2. 6 6
      readme.md

+ 5 - 5
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` 插件
 
   | 插件    | 用途  |

+ 6 - 6
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