Explorar o código

Handle *interface{}

bits01 %!s(int64=8) %!d(string=hai) anos
pai
achega
cea8deae8c
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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: