Explorar o código

fix to support the date type

evildecay %!s(int64=8) %!d(string=hai) anos
pai
achega
f077262a4d
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  1. 2 0
      helpers.go

+ 2 - 0
helpers.go

@@ -57,6 +57,8 @@ func goType(t TypeInfo) reflect.Type {
 		return reflect.TypeOf(make([]interface{}, len(tuple.Elems)))
 	case TypeUDT:
 		return reflect.TypeOf(make(map[string]interface{}))
+	case TypeDate:
+		return reflect.TypeOf(*new(time.Time))
 	default:
 		return nil
 	}