Open garrettladley opened 1 month ago
Repost of The time.Time type is converted to empty map from github.com/mitchellh/mapstructure.
github.com/mitchellh/mapstructure
When using Decode, the fields of type time.Time from the input struct are being decoded to the zero value of time.Time, time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC), in the output struct.
Decode
time.Time
time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC)
I'd like to see the default behaviour here changed also, using the standard RFC3339 or handling time stuct mapping would be ideal
Repost of The time.Time type is converted to empty map from
github.com/mitchellh/mapstructure
.When using
Decode
, the fields of typetime.Time
from the input struct are being decoded to the zero value oftime.Time
,time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC)
, in the output struct.