Descriptiontime: clean up MarshalJSON, add RFC3339 method
encoding/xml: handle time.Time as recognized type
The long term plan is to define an interface that time.Time
can implement and that encoding/xml can call, but we are
not going to try to define that interface before Go 1.
Instead, special-case time.Time in package xml, because
it is such a fundamental type, as a stop-gap.
The eventual methods will behave this way.
Fixes issue 2793.
Patch Set 1 #Patch Set 2 : diff -r 82bac8cdab6b https://go.googlecode.com/hg/ #
Total comments: 2
Patch Set 3 : diff -r 915676d75024 https://go.googlecode.com/hg/ #Patch Set 4 : diff -r 915676d75024 https://go.googlecode.com/hg/ #
Total comments: 1
Patch Set 5 : diff -r c111d33ea407 https://code.google.com/p/go/ #
MessagesTotal messages: 9
|