You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
in text proto, and binary representation it would be a string, but a struct in Go will be a time.Duration that properly calls time.ParseDuration / dur.String().
Similar for time.Time (with possibility to specify the format to use).
Yes, this is less efficient than WKT Duration and Timestamp, for transmit over network or storage, but if using protocol buffers for configuration maintained by humans, it is way easier. Also there is no way to provide default values for WKT Duration and Timestamp.
The text was updated successfully, but these errors were encountered:
I would like to say this:
in text proto, and binary representation it would be a string, but a struct in Go will be a
time.Duration
that properly callstime.ParseDuration
/dur.String()
.Similar for
time.Time
(with possibility to specify the format to use).Yes, this is less efficient than WKT Duration and Timestamp, for transmit over network or storage, but if using protocol buffers for configuration maintained by humans, it is way easier. Also there is no way to provide default values for WKT Duration and Timestamp.
The text was updated successfully, but these errors were encountered: