The time.Time type is converted to empty map
Author: van-scottCreated Jun 16, 2023Updated May 24, 2024
type Person struct {
Name string json:"name"
Age int json:"age"
Time time.Time json:"time"
Address Address json:"address"
}
Why a time.Time type has to be converted to map, not recursive transfer is not on the line, configuration is not, read a lot of posts, what hook, hook function is not good. I recommend using the github.com/fatih/structs library, I really buy it
Source: mitchellh/mapstructure