| 9 | ) |
| 10 | |
| 11 | type IMapper interface { |
| 12 | Mapper(fromObj, toObj interface{}) error |
| 13 | AutoMapper(fromObj, toObj interface{}) error |
| 14 | MapperMap(fromMap map[string]interface{}, toObj interface{}) error |
| 15 | MapToSlice(fromMap map[string]interface{}, toSlice interface{}) error |
| 16 | MapperMapSlice(fromMaps map[string]map[string]interface{}, toSlice interface{}) error |
| 17 | MapperSlice(fromSlice, toSlice interface{}) error |
| 18 | MapToJson(fromMap map[string]interface{}) ([]byte, error) |
| 19 | JsonToMap(body []byte, toMap *map[string]interface{}) error |
| 20 | |
| 21 | Register(obj interface{}) error |
| 22 | UseWrapper(w TypeWrapper) |
| 23 | |
| 24 | GetTypeName(obj interface{}) string |
| 25 | GetFieldName(objElem reflect.Value, index int) string |
| 26 | GetCustomTagName() string |
| 27 | GetDefaultTimeWrapper() *TimeWrapper |
| 28 | |
| 29 | CheckExistsField(elem reflect.Value, fieldName string) (realFieldName string, exists bool) |
| 30 | CheckIsTypeWrapper(value reflect.Value) bool |
| 31 | |
| 32 | SetEnabledTypeChecking(isEnabled bool) |
| 33 | IsEnabledTypeChecking() bool |
| 34 | |
| 35 | SetEnabledMapperTag(isEnabled bool) |
| 36 | IsEnabledMapperTag() bool |
| 37 | |
| 38 | SetEnabledJsonTag(isEnabled bool) |
| 39 | IsEnabledJsonTag() bool |
| 40 | |
| 41 | SetEnabledCustomTag(isEnabled bool) |
| 42 | IsEnabledCustomTag() bool |
| 43 | SetCustomTagName(tagName string) |
| 44 | |
| 45 | SetEnabledAutoTypeConvert(isEnabled bool) |
| 46 | IsEnabledAutoTypeConvert() bool |
| 47 | |
| 48 | SetEnabledMapperStructField(isEnabled bool) |
| 49 | IsEnabledMapperStructField() bool |
| 50 | |
| 51 | SetEnableFieldIgnoreTag(isEnabled bool) |
| 52 | IsEnableFieldIgnoreTag() bool |
| 53 | } |
| 54 | |
| 55 | func init() { |
| 56 | standardMapper = NewMapper() |
no outgoing calls
no test coverage detected
searching dependent graphs…