UseWrapper register a type wrapper
(w TypeWrapper)
| 222 | |
| 223 | // UseWrapper register a type wrapper |
| 224 | func (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. |