jason d0a64658b6 change | 2 rokov pred | |
---|---|---|
.. | ||
v1 | 2 rokov pred | |
ReadMe.md | 3 rokov pred | |
garden_service.pb.go | 3 rokov pred | |
garden_service.proto | 3 rokov pred | |
household_service.pb.go | 3 rokov pred | |
household_service.proto | 3 rokov pred | |
setup.go | 2 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/