From aa5743147c3e157c6b2e30cfe3014035e6628808 Mon Sep 17 00:00:00 2001 From: Jack Lee <695697442@qq.com> Date: Tue, 7 Sep 2021 13:37:40 +0800 Subject: [PATCH] docs: Use go install when install kratos instead of go get (#1438) --- README.md | 2 +- README_zh.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 817de678e..446677ae6 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ docker run -it --rm -p 8000:8000 --workdir /workspace golang ```shell apt-get update && apt-get -y install protobuf-compiler export GOPROXY=https://goproxy.io,direct -go get github.com/go-kratos/kratos/cmd/kratos/v2@latest && kratos upgrade +go install github.com/go-kratos/kratos/cmd/kratos/v2@latest && kratos upgrade ``` ```shell diff --git a/README_zh.md b/README_zh.md index 3b2fd1764..a28f934de 100644 --- a/README_zh.md +++ b/README_zh.md @@ -51,9 +51,9 @@ Kratos 一套轻量级 Go 微服务框架,包含大量微服务相关功能及 - [protoc-gen-go](https://github.com/protocolbuffers/protobuf-go) ### Installing -##### go get 安装: +##### go install 安装: ``` -go get github.com/go-kratos/kratos/cmd/kratos/v2@latest +go install github.com/go-kratos/kratos/cmd/kratos/v2@latest kratos upgrade ``` ##### 源码编译安装: