Golang XML Unmarshal and time.Time fields

前端 未结 4 1811
南笙
南笙 2021-02-04 01:14

I have XML data I am retrieving via a REST API that I am unmarshal-ing into a GO struct. One of the fields is a date field, however the date format returned by the API does not

4条回答
  •  既然无缘
    2021-02-04 01:41

    I've implemented a xml dateTime format conforming a spec, you can find it on GitHub: https://github.com/datainq/xml-date-time

    You can find XML dateTime in W3C spec

提交回复
热议问题