json.Unmarshal uses RFC3339 to decode MysqL datetime type into time.Time.
Json snippet
Right
"Datetime": "2017-07-06T17:27:00Z"
Wrong
"Datetime": "2017-07-06 17:27:00"
or
"Datetime": "2017-07-06T17:27:00"
json.Unmarshal uses RFC3339 to decode MysqL datetime type into time.Time.
"Datetime": "2017-07-06T17:27:00Z"
"Datetime": "2017-07-06 17:27:00"
or
"Datetime": "2017-07-06T17:27:00"