From 2e80d12d6af24117fb9b1b7e711a370c70ed3ad5 Mon Sep 17 00:00:00 2001 From: Kevin Wan Date: Wed, 17 Nov 2021 21:10:45 +0800 Subject: [PATCH] docs: update readme to use goctl@cli (#1255) * chore: update goctl version * style: coding style * docs: update readme to use goctl@cli --- readme-cn.md | 4 ++-- readme.md | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/readme-cn.md b/readme-cn.md index 302525c2..ebc72a3b 100644 --- a/readme-cn.md +++ b/readme-cn.md @@ -104,10 +104,10 @@ GO111MODULE=on GOPROXY=https://goproxy.cn/,direct go get -u github.com/tal-tech/ ```shell # 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 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 可执行 diff --git a/readme.md b/readme.md index 80212516..4fbc5c3f 100644 --- a/readme.md +++ b/readme.md @@ -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.