Procházet zdrojové kódy

Handle *interface{}

bits01 před 8 roky
rodič
revize
cea8deae8c
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      redis/scan.go

+ 2 - 0
redis/scan.go

@@ -187,6 +187,8 @@ func convertAssign(d interface{}, s interface{}) (err error) {
 		switch d := d.(type) {
 		case *string:
 			*d = string(s)
+		case *interface{}:
+			*d = s
 		case nil:
 			// skip value
 		default: