فهرست منبع

Handle *interface{}

bits01 8 سال پیش
والد
کامیت
cea8deae8c
1فایلهای تغییر یافته به همراه2 افزوده شده و 0 حذف شده
  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: