jason 275a4cfd6d get phone and email | 4 gadi atpakaļ | |
---|---|---|
.. | ||
v1 | 4 gadi atpakaļ | |
ReadMe.md | 4 gadi atpakaļ | |
log_service.pb.go | 4 gadi atpakaļ | |
log_service.proto | 4 gadi atpakaļ | |
setup.go | 4 gadi atpakaļ | |
supplier_management.pb.go | 4 gadi atpakaļ | |
supplier_management.proto | 4 gadi atpakaļ | |
thirdparty_management.pb.go | 4 gadi atpakaļ | |
thirdparty_management.proto | 4 gadi atpakaļ |
下载与安装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/