diff --git a/readme.md b/readme.md index a30f051e..e441ad99 100644 --- a/readme.md +++ b/readme.md @@ -119,6 +119,16 @@ go get -u github.com/zeromicro/go-zero # for Go 1.16 and later go install github.com/zeromicro/go-zero/tools/goctl@latest + + # docker for amd64 architecture + docker pull kevinwan/goctl + # run goctl like + docker run --rm -it -v `pwd`:/app kevinwan/goctl goctl --help + + # docker for arm64 (M1) architecture + docker pull kevinwan/goctl:latest-arm64 + # run goctl like + docker run --rm -it -v `pwd`:/app kevinwan/goctl:latest-arm64 goctl --help ``` make sure goctl is executable.