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

Function Mapper

mapper.go:201–203  ·  view source on GitHub ↗

Mapper mapper and set value from struct fromObj to toObj not support auto register struct

(fromObj, toObj interface{})

Source from the content-addressed store, hash-verified

199// Mapper mapper and set value from struct fromObj to toObj
200// not support auto register struct
201func Mapper(fromObj, toObj interface{}) error {
202 return standardMapper.Mapper(fromObj, toObj)
203}
204
205// AutoMapper mapper and set value from struct fromObj to toObj
206// support auto register struct

Callers 8

mainFunction · 0.92
mainFunction · 0.92
mainFunction · 0.92
Benchmark_Map_OldFunction · 0.85
Test_MapperFunction · 0.85
BenchmarkMapperFunction · 0.85
BenchmarkAutoMapperFunction · 0.85
BenchmarkAutoMapper_MapFunction · 0.85

Calls 1

MapperMethod · 0.65

Tested by 5

Benchmark_Map_OldFunction · 0.68
Test_MapperFunction · 0.68
BenchmarkMapperFunction · 0.68
BenchmarkAutoMapperFunction · 0.68
BenchmarkAutoMapper_MapFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…