jason 67f2bb3869 change 1 rok pred
..
v1 d0a64658b6 change 2 rokov pred
ReadMe.md 6a78e26038 init 3 rokov pred
garden_service.pb.go 483fcf4885 change 3 rokov pred
garden_service.proto 483fcf4885 change 3 rokov pred
household_service.pb.go c41c5057e1 微信公众号接入回调 3 rokov pred
household_service.proto c41c5057e1 微信公众号接入回调 3 rokov pred
setup.go 67f2bb3869 change 1 rok pred

ReadMe.md

必要条件

  1. 下载与安装protoc工具

    https://github.com/protocolbuffers/protobuf/releases

  2. 安装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/
    

生成说明

  1. 普通生成 protoc --go_out=. *.proto
  2. 支持rpc protoc --go_out=plugins=grpc:. *.proto