1package copystructure 2 3import ( 4 "reflect" 5 "time" 6) 7 8func init() { 9 Copiers[reflect.TypeOf(time.Time{})] = timeCopier 10} 11 12func timeCopier(v interface{}) (interface{}, error) { 13 // Just... copy it. 14 return v.(time.Time), nil 15} 16