mirror of
https://github.com/charlienet/go-mixed.git
synced 2025-07-18 16:42:41 +08:00
名称转换
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user