MapperMap mapper and set value from map to object support auto register struct now support field type: 1.reflect.Bool 2.reflect.String 3.reflect.Int8\16\32\64 4.reflect.Uint8\16\32\64 5.reflect.Float32\64 6.time.Time
(fromMap map[string]interface{}, toObj interface{})
| 164 | // 5.reflect.Float32\64 |
| 165 | // 6.time.Time |
| 166 | func MapperMap(fromMap map[string]interface{}, toObj interface{}) error { |
| 167 | return standardMapper.MapperMap(fromMap, toObj) |
| 168 | } |
| 169 | |
| 170 | // MapToSlice mapper from map[string]interface{} to a slice of any type's ptr |
| 171 | // toSlice must be a slice of any type. |
searching dependent graphs…