del unnecessary blank

This commit is contained in:
raymonder jin
2023-02-23 14:36:58 +08:00
committed by kevin
parent cc5acf3b90
commit f571cb8af2
2 changed files with 11 additions and 11 deletions

View File

@@ -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