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

Function SetEnabledTypeChecking

mapper.go:76–78  ·  view source on GitHub ↗

SetEnabledTypeChecking set enabled flag for TypeChecking if set true, the field type will be checked for consistency during mapping default is false

(isEnabled bool)

Source from the content-addressed store, hash-verified

74// if set true, the field type will be checked for consistency during mapping
75// default is false
76func SetEnabledTypeChecking(isEnabled bool) {
77 standardMapper.SetEnabledTypeChecking(isEnabled)
78}
79
80// SetEnabledMapperTag set enabled flag for 'Mapper' tag check
81// if set true, 'Mapper' tag will be check during mapping's GetFieldName

Callers 7

mainFunction · 0.92
Test_MapperFunction · 0.85
Test_MapperSliceFunction · 0.85
Test_MapperSlice2Function · 0.85
Test_MapperStructSliceFunction · 0.85
Test_MapperStructSlice2Function · 0.85

Calls 1

Tested by 6

Test_MapperFunction · 0.68
Test_MapperSliceFunction · 0.68
Test_MapperSlice2Function · 0.68
Test_MapperStructSliceFunction · 0.68
Test_MapperStructSlice2Function · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…