MCPcopy Create free account
hub / github.com/devfeel/mapper / AutoMapper

Method AutoMapper

mapper_object.go:52–54  ·  view source on GitHub ↗

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

(fromObj, toObj interface{})

Source from the content-addressed store, hash-verified

50// AutoMapper mapper and set value from struct fromObj to toObj
51// support auto register struct
52func (dm *mapperObject) AutoMapper(fromObj, toObj interface{}) error {
53 return dm.Mapper(fromObj, toObj)
54}
55
56// MapperMap mapper and set value from map to object
57// support auto register struct

Callers

nothing calls this directly

Calls 1

MapperMethod · 0.95

Tested by

no test coverage detected