jason 75f7ff87d1 change 3 years ago
..
v1 75f7ff87d1 change 3 years ago
ReadMe.md 0334d6ad6e 初始化代码 4 years ago
log_service.pb.go dd37a793f6 change 4 years ago
log_service.proto 3510d6c7e7 change 4 years ago
setup.go a45fa5b626 change 4 years ago
supplier_management.pb.go 86aa430274 change 3 years ago
supplier_management.proto 86aa430274 change 3 years ago
thirdparty_management.pb.go 275a4cfd6d get phone and email 4 years ago
thirdparty_management.proto 275a4cfd6d get phone and email 4 years ago

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