docs: update readme to use goctl@cli (#1255)

* chore: update goctl version

* style: coding style

* docs: update readme to use goctl@cli
master
Kevin Wan 3 years ago committed by GitHub
parent 417a96cbf2
commit 2e80d12d6a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -104,10 +104,10 @@ GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/tal-tech/
```shell ```shell
# Go 1.15 及之前版本 # Go 1.15 及之前版本
GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/tal-tech/go-zero/tools/goctl GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/tal-tech/go-zero/tools/goctl@cli
# Go 1.16 及以后版本 # Go 1.16 及以后版本
go install github.com/tal-tech/go-zero/tools/goctl@latest GOPROXY=https://goproxy.cn/,direct go install github.com/tal-tech/go-zero/tools/goctl@cli
``` ```
确保 goctl 可执行 确保 goctl 可执行

@ -107,10 +107,10 @@ go get -u github.com/tal-tech/go-zero
```shell ```shell
# for Go 1.15 and earlier # for Go 1.15 and earlier
GO111MODULE=on go get -u github.com/tal-tech/go-zero/tools/goctl GO111MODULE=on go get -u github.com/tal-tech/go-zero/tools/goctl@cli
# for Go 1.16 and later # for Go 1.16 and later
go install github.com/tal-tech/go-zero/tools/goctl@latest go install github.com/tal-tech/go-zero/tools/goctl@cli
``` ```
make sure goctl is executable. make sure goctl is executable.

Loading…
Cancel
Save