Go——安装指定版本 protoc-gen-go

 

go install google.golang.org/protobuf/cmd/protoc-gen-go@v1.26.0
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest

 

https://github.com/protocolbuffers/protobuf/releases/tag/v21.5

 

goland 环境变量设置

GOPROXY=https://goproxy.io,direct;GOPRIVATE=gitlab.oye-inc.com

 

命令行环境变量设置

go env -w GOPRIVATE=gitlab.oye-inc.com

 

posted @ 2022-12-21 15:29  会飞的斧头  阅读(2517)  评论(0编辑  收藏  举报