mirror of
https://github.com/bitechdev/ResolveSpec.git
synced 2026-01-21 18:14:27 +00:00
refactor(reflection): 🛠️ comment out ToSnakeCase usage in MapToStruct
This commit is contained in:
@@ -973,7 +973,7 @@ func MapToStruct(dataMap map[string]interface{}, target interface{}) error {
|
|||||||
// 4. Field name variations
|
// 4. Field name variations
|
||||||
columnNames = append(columnNames, field.Name)
|
columnNames = append(columnNames, field.Name)
|
||||||
columnNames = append(columnNames, strings.ToLower(field.Name))
|
columnNames = append(columnNames, strings.ToLower(field.Name))
|
||||||
//columnNames = append(columnNames, ToSnakeCase(field.Name))
|
// columnNames = append(columnNames, ToSnakeCase(field.Name))
|
||||||
|
|
||||||
// Map all column name variations to this field index
|
// Map all column name variations to this field index
|
||||||
for _, colName := range columnNames {
|
for _, colName := range columnNames {
|
||||||
|
|||||||
Reference in New Issue
Block a user