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

Method UseWrapper

mapper_object.go:224–229  ·  view source on GitHub ↗

UseWrapper register a type wrapper

(w TypeWrapper)

Source from the content-addressed store, hash-verified

222
223// UseWrapper register a type wrapper
224func (dm *mapperObject) UseWrapper(w TypeWrapper) {
225 if len(dm.typeWrappers) > 0 {
226 dm.typeWrappers[len(dm.typeWrappers)-1].SetNext(w)
227 }
228 dm.typeWrappers = append(dm.typeWrappers, w)
229}
230
231// MapToSlice mapper from map[string]interface{} to a slice of any type's ptr
232// toSlice must be a slice of any type.

Callers

nothing calls this directly

Calls 1

SetNextMethod · 0.65

Tested by

no test coverage detected