From 791e99960507657bb23913af2b5fa03d947a66ba Mon Sep 17 00:00:00 2001 From: crusader Date: Tue, 10 Apr 2018 20:33:07 +0900 Subject: [PATCH] ing --- reflect/convert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reflect/convert.go b/reflect/convert.go index 3e43fb1..3be00c6 100644 --- a/reflect/convert.go +++ b/reflect/convert.go @@ -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() {