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

Method useWrapper

mapper_object_internal.go:67–72  ·  view source on GitHub ↗

UseWrapper register a type wrapper

(w TypeWrapper)

Source from the content-addressed store, hash-verified

65
66// UseWrapper register a type wrapper
67func (dm *mapperObject) useWrapper(w TypeWrapper) {
68 if len(dm.typeWrappers) > 0 {
69 dm.typeWrappers[len(dm.typeWrappers)-1].SetNext(w)
70 }
71 dm.typeWrappers = append(dm.typeWrappers, w)
72}
73
74func (dm *mapperObject) elemMapper(fromElem, toElem reflect.Value) error {
75 // check register flag

Callers 1

NewMapperFunction · 0.95

Calls 1

SetNextMethod · 0.65

Tested by

no test coverage detected