MCPcopy Index your code
hub / github.com/devfeel/mapper / MapperMap

Function MapperMap

mapper.go:166–168  ·  view source on GitHub ↗

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{})

Source from the content-addressed store, hash-verified

164// 5.reflect.Float32\64
165// 6.time.Time
166func 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.

Callers 3

mainFunction · 0.92
Test_MapperMapFunction · 0.85
BenchmarkMapperMapFunction · 0.85

Calls 1

MapperMapMethod · 0.65

Tested by 2

Test_MapperMapFunction · 0.68
BenchmarkMapperMapFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…