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() {
|
switch t.Kind() {
|
||||||
case Map:
|
case Map:
|
||||||
var (
|
var (
|
||||||
res = reflect.MakeMap(t)
|
res = reflect.MakeMapWithSize(t, len(vv.MapKeys()))
|
||||||
ck interface{}
|
ck interface{}
|
||||||
)
|
)
|
||||||
for _, k := range vv.MapKeys() {
|
for _, k := range vv.MapKeys() {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user