ing
This commit is contained in:
parent
59964f7e21
commit
791e999605
|
@ -47,7 +47,7 @@ func ConvertToType(v interface{}, t reflect.Type) (interface{}, error) {
|
|||
switch t.Kind() {
|
||||
case Map:
|
||||
var (
|
||||
res = reflect.MakeMap(t)
|
||||
res = reflect.MakeMapWithSize(t, len(vv.MapKeys()))
|
||||
ck interface{}
|
||||
)
|
||||
for _, k := range vv.MapKeys() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user