I'm looking for a clean & simple approach for dealing with various
date/time formats in xml/json when encoding/decoding that data to or from a
The default format produced is ISO 8601.
If I need to represent my struct in json, and my struct fields of time.Time
need to be represented in a format other than ISO 8601 how do I do that?
The same question applies to decoding, I need to receive json/xml that have
date/times represented in a format other than ISO 8601. How do I decode
that representation and get a populated struct?
I thought there may have been a field tag that would look something like
CreatedDateUTC time.Time `json:"myName,DateFormat(....)"`
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 email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.