提交 b78d594c 编写于 作者: M MRXLT

set ggo module auto

上级 068db657
...@@ -75,7 +75,7 @@ export PATH=$PATH:$GOPATH/bin ...@@ -75,7 +75,7 @@ export PATH=$PATH:$GOPATH/bin
## Get go packages ## Get go packages
```shell ```shell
go env -w GO111MODULE=on go env -w GO111MODULE=auto
go env -w GOPROXY=https://goproxy.cn,direct go env -w GOPROXY=https://goproxy.cn,direct
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
......
...@@ -72,7 +72,7 @@ export PATH=$PATH:$GOPATH/bin ...@@ -72,7 +72,7 @@ export PATH=$PATH:$GOPATH/bin
## 获取 Go packages ## 获取 Go packages
```shell ```shell
go env -w GO111MODULE=on go env -w GO111MODULE=auto
go env -w GOPROXY=https://goproxy.cn,direct go env -w GOPROXY=https://goproxy.cn,direct
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-swagger
......
...@@ -22,7 +22,7 @@ function init() { ...@@ -22,7 +22,7 @@ function init() {
export GOPATH=$HOME/go export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin export PATH=$PATH:$GOPATH/bin
go env -w GO111MODULE=on go env -w GO111MODULE=auto
go env -w GOPROXY=https://goproxy.cn,direct go env -w GOPROXY=https://goproxy.cn,direct
go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway go get -u github.com/grpc-ecosystem/grpc-gateway/protoc-gen-grpc-gateway
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册