Would someone kind to point me to a reasoning behind "func (t Time) 
MarshalJSON() ([]byte, error)" use "time.RFC3339Nano" formatting to spit 
out time in JSON, and 
"func (t *Time) UnmarshalJSON(data []byte) error " uses "time.RFC3339" to 
parse the same timestamp? I do expect serialization/deserialization 
roundtrip to return exactly the same 
data as it was at the beginning. In this case it loses subsecond precision, 
and it just bit me (doctor says I will live).

Is it a bug or some historically-important reasons that I am missing are in 
play there?

Thank you in advance!


You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 

Reply via email to