1
0
mirror of https://github.com/charlienet/go-mixed.git synced 2025-07-18 16:42:41 +08:00

名称转换

This commit is contained in:
2022-04-22 14:45:58 +08:00
parent f7df1f1668
commit bf99bebb07
5 changed files with 42 additions and 59 deletions

View File

@ -28,7 +28,7 @@ func ToMap(o any, opts ...optionFunc) map[string]any {
continue
}
m[field.name] = source.Interface()
m[opt.NameFunc(field.name)] = source.Interface()
}
return m