mirror of
https://github.com/zeromicro/go-zero.git
synced 2025-01-23 09:00:20 +08:00
chore: update readme for goctl installation (#4206)
This commit is contained in:
parent
8d9746e794
commit
4ec9cac82b
11
readme-cn.md
11
readme-cn.md
@ -118,18 +118,13 @@ GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/zeromicro
|
||||
# For Mac
|
||||
brew install goctl
|
||||
|
||||
# docker for amd64 architecture
|
||||
# docker for all platforms
|
||||
docker pull kevinwan/goctl
|
||||
# run goctl like
|
||||
# run goctl
|
||||
docker run --rm -it -v `pwd`:/app kevinwan/goctl --help
|
||||
|
||||
# docker for arm64(Mac) architecture
|
||||
docker pull kevinwan/goctl:latest-arm64
|
||||
# run goctl like
|
||||
docker run --rm -it -v `pwd`:/app kevinwan/goctl:latest-arm64 goctl --help
|
||||
```
|
||||
|
||||
确保 goctl 可执行
|
||||
确保 goctl 可执行,并且在 $PATH 环境变量里。
|
||||
|
||||
2. 快速生成 api 服务
|
||||
|
||||
|
11
readme.md
11
readme.md
@ -125,18 +125,13 @@ go get -u github.com/zeromicro/go-zero
|
||||
# For Mac
|
||||
brew install goctl
|
||||
|
||||
# docker for amd64 architecture
|
||||
# docker for all platforms
|
||||
docker pull kevinwan/goctl
|
||||
# run goctl like
|
||||
# run goctl
|
||||
docker run --rm -it -v `pwd`:/app kevinwan/goctl --help
|
||||
|
||||
# docker for arm64(Mac) architecture
|
||||
docker pull kevinwan/goctl:latest-arm64
|
||||
# run goctl like
|
||||
docker run --rm -it -v `pwd`:/app kevinwan/goctl:latest-arm64 --help
|
||||
```
|
||||
|
||||
make sure goctl is executable.
|
||||
make sure goctl is executable and in your $PATH.
|
||||
|
||||
3. Create the API file, like greet.api, you can install the plugin of goctl in vs code, api syntax is supported.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user