Closed neild closed 7 years ago
time.Time is immutable, so just copying it (e.g., "t1 = t2") is fine. Fixes TestTimeCopy. Fixes TestStructA with go1.9, by ensuring monotonic time values are copied. (Time.MarshalBinary does not preserve monotonic time.)
Thanks!
I appreciate the contribution.
time.Time is immutable, so just copying it (e.g., "t1 = t2") is fine. Fixes TestTimeCopy. Fixes TestStructA with go1.9, by ensuring monotonic time values are copied. (Time.MarshalBinary does not preserve monotonic time.)