You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 31, 2025. It is now read-only.
The dynamodbstream.StreamRecord struct has a time.Time field:
//ApproximateCreationDateTime *time.Time type:"timestamp" timestampFormat:"unix".
Its not convenient to json.Unmarshal unix Time in Go without writing a custom type for time. I am trying to use this struct to unmarshal stream records from dynamo, but that fails because json.Unmarshal cannot parse unix time by default. I get this error:
{"error":"parsing time "1470788940" as ""2006-01-02T15:04:05Z07:00"": cannot parse "1470788940" as """"}
Can we wrap the time fields into a struct and provide a marshaller and unmarshaller for parsing unix time ? something like this perhaps: