Преглед на файлове

add missing TypeUDT in goType

Chris Bannister преди 10 години
родител
ревизия
235f84cc80
променени са 1 файла, в които са добавени 2 реда и са изтрити 0 реда
  1. 2 0
      helpers.go

+ 2 - 0
helpers.go

@@ -50,6 +50,8 @@ func goType(t TypeInfo) reflect.Type {
 		// what can we do here? all there is to do is to make a list of interface{}
 		tuple := t.(TupleTypeInfo)
 		return reflect.TypeOf(make([]interface{}, len(tuple.Elems)))
+	case TypeUDT:
+		return reflect.TypeOf(make(map[string]interface{}))
 	default:
 		return nil
 	}