Skip to content

Commit

Permalink
chore: update readme for goctl installation (#4206)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevwan authored Jun 23, 2024
1 parent 8d9746e commit 4ec9cac
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
11 changes: 3 additions & 8 deletions readme-cn.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 服务

Expand Down
11 changes: 3 additions & 8 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down

0 comments on commit 4ec9cac

Please sign in to comment.