Fes*_*235 17 timestamp go protocol-buffers unix-timestamp
我在 Golang 中有一个 time.Time 变量10-30 00:49:07.1236,需要转换为 Go Protobuf timestamp.Timestamp。知道可以使用哪些函数来完成此任务吗?或者我从错误的角度看待这个问题?
10-30 00:49:07.1236
Daz*_*kin 23
查看New并Timestamp.AsTime进入timestamppb
New
Timestamp.AsTime
timestamppb
这些支持与和之间的time.Time转换Timestamp
time.Time
Timestamp
归档时间:
4 年,7 月 前
查看次数:
17639 次
最近记录:
2 年,9 月 前