docs: update install readme (#1417)

master
Kevin Wan 3 years ago committed by GitHub
parent ba6a7c9dc8
commit 892f93a716
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -87,7 +87,7 @@ go-zero 是一个集成了各种工程实践的包含 web 和 rpc 框架,有
在项目目录下通过如下命令安装: 在项目目录下通过如下命令安装:
```shell ```shell
GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/zeromicro/go-zero GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/tal-tech/go-zero
``` ```
## 5. Quick Start ## 5. Quick Start
@ -104,10 +104,10 @@ GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/zeromicro
```shell ```shell
# Go 1.15 及之前版本 # Go 1.15 及之前版本
GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/zeromicro/go-zero/tools/goctl@latest GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/tal-tech/go-zero/tools/goctl@latest
# Go 1.16 及以后版本 # Go 1.16 及以后版本
GOPROXY=https://goproxy.cn/,direct go install github.com/zeromicro/go-zero/tools/goctl@latest GOPROXY=https://goproxy.cn/,direct go install github.com/tal-tech/go-zero/tools/goctl@latest
``` ```
确保 goctl 可执行 确保 goctl 可执行

@ -90,7 +90,7 @@ As below, go-zero protects the system with couple layers and mechanisms:
Run the following command under your project: Run the following command under your project:
```shell ```shell
go get -u github.com/zeromicro/go-zero go get -u github.com/tal-tech/go-zero
``` ```
## 6. Quick Start ## 6. Quick Start
@ -107,10 +107,10 @@ go get -u github.com/zeromicro/go-zero
```shell ```shell
# for Go 1.15 and earlier # for Go 1.15 and earlier
GO111MODULE=on go get -u github.com/zeromicro/go-zero/tools/goctl@latest GO111MODULE=on go get -u github.com/tal-tech/go-zero/tools/goctl@latest
# 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/tal-tech/go-zero/tools/goctl@latest
``` ```
make sure goctl is executable. make sure goctl is executable.

@ -6,7 +6,7 @@ import (
) )
// BuildVersion is the version of goctl. // BuildVersion is the version of goctl.
const BuildVersion = "1.2.5" const BuildVersion = "1.3.0"
var tag = map[string]int{"pre-alpha": 0, "alpha": 1, "pre-bata": 2, "beta": 3, "released": 4, "": 5} var tag = map[string]int{"pre-alpha": 0, "alpha": 1, "pre-bata": 2, "beta": 3, "released": 4, "": 5}

Loading…
Cancel
Save