jason 1366e381a0 change | 1 gadu atpakaļ | |
---|---|---|
.. | ||
v1 | 1 gadu atpakaļ | |
ReadMe.md | 2 gadi atpakaļ | |
device_service.pb.go | 1 gadu atpakaļ | |
device_service.proto | 1 gadu atpakaļ | |
mqtt_service.pb.go | 1 gadu atpakaļ | |
mqtt_service.proto | 1 gadu atpakaļ | |
setup.go | 1 gadu atpakaļ |
下载与安装protoc
工具
安装protoc Go插件:protoc-gen-go
方式1(默认带omitempty
):
go get -u github.com/golang/protobuf/protoc-gen-go
方式2(不带omitempty
):
git clone http://gitlab.sydip.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/