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

* chore: update goctl version

* style: coding style

* docs: update readme to use goctl@cli
This commit is contained in:
Kevin Wan
2021-11-17 21:10:45 +08:00
committed by GitHub
parent 417a96cbf2
commit 2e80d12d6a
2 changed files with 4 additions and 4 deletions

View File

@@ -107,10 +107,10 @@ go get -u github.com/tal-tech/go-zero
```shell
# 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
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.