jason 030cd25c64 init | il y a 1 an | |
---|---|---|
.. | ||
v1 | il y a 1 an | |
ReadMe.md | il y a 1 an | |
adm_data.pb.go | il y a 1 an | |
adm_data.proto | il y a 1 an | |
setup.go | il y a 1 an |
下载与安装protoc
工具
安装protoc Go插件:protoc-gen-go
方式1(默认带omitempty
):
go get -u github.com/golang/protobuf/protoc-gen-go
方式2(不带omitempty
):
git clone http://gitlab.sygd.com/repo/libs/go/gomodule
cd mod /github.com/golang/protobuf@v1.3.4/protoc-gen-go/generator
go build
cp protoc-gen-go $GOBIN/