jason c6b5eb678d change | 4 gadi atpakaļ | |
---|---|---|
.. | ||
v1 | 4 gadi atpakaļ | |
ReadMe.md | 4 gadi atpakaļ | |
setup.go | 4 gadi atpakaļ | |
smart_alarm.pb.go | 4 gadi atpakaļ | |
smart_alarm.proto | 4 gadi atpakaļ | |
smart_auth.pb.go | 4 gadi atpakaļ | |
smart_auth.proto | 4 gadi atpakaļ |
下载与安装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/