|
|
@ -119,6 +119,16 @@ go get -u github.com/zeromicro/go-zero
|
|
|
|
|
|
|
|
|
|
|
|
# for Go 1.16 and later
|
|
|
|
# for Go 1.16 and later
|
|
|
|
go install github.com/zeromicro/go-zero/tools/goctl@latest
|
|
|
|
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.
|
|
|
|
make sure goctl is executable.
|
|
|
|