docs: Use go install when install kratos instead of go get (#1438)

pull/1423/head
Jack Lee 3 years ago committed by GitHub
parent 2a4d440680
commit aa5743147c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      README.md
  2. 4
      README_zh.md

@ -63,7 +63,7 @@ docker run -it --rm -p 8000:8000 --workdir /workspace golang
```shell ```shell
apt-get update && apt-get -y install protobuf-compiler apt-get update && apt-get -y install protobuf-compiler
export GOPROXY=https://goproxy.io,direct 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 ```shell

@ -51,9 +51,9 @@ Kratos 一套轻量级 Go 微服务框架,包含大量微服务相关功能及
- [protoc-gen-go](https://github.com/protocolbuffers/protobuf-go) - [protoc-gen-go](https://github.com/protocolbuffers/protobuf-go)
### Installing ### 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 kratos upgrade
``` ```
##### 源码编译安装: ##### 源码编译安装:

Loading…
Cancel
Save