[英]how to store time.duration in protobuf3
in proto file... 在原始文件中...
syntax = "proto3";
import "google/protobuf/duration.proto";
message aaaResponse{
google.protobuf.Duration min = 2;
}
... will auto generate *duration.Duration ...将自动生成* duration.Duration
how to change the proto file to get time.Duration 如何更改原始文件以获取时间
Try this : 尝试这个 :
go get github.com/gogo/protobuf/protoc-gen-gogofaster
protoc --gogofaster_out=./ duration.proto
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.