jason 207e8492b4 抽离省厅服务 | 3 rokov pred | |
---|---|---|
.. | ||
v1 | 3 rokov pred | |
ReadMe.md | 4 rokov pred | |
provincial_management.pb.go | 3 rokov pred | |
provincial_management.proto | 3 rokov pred | |
setup.go | 3 rokov pred | |
supplier_management.pb.go | 3 rokov pred | |
supplier_management.proto | 3 rokov pred | |
thirdparty_service.pb.go | 3 rokov pred | |
thirdparty_service.proto | 3 rokov pred |
下载与安装protoc
工具
安装protoc Go插件:protoc-gen-go
方式1(默认带omitempty
):
go get -u github.com/golang/protobuf/protoc-gen-go
方式2(不带omitempty
):
cd mod /github.com/golang/protobuf@v1.3.4/protoc-gen-go/generator
go build
cp protoc-gen-go $GOBIN/