From 97d730b821ab14c88bc276191ecc5d9e559696b5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A1=B9=E8=B6=85?= Date: Tue, 10 Dec 2013 02:10:58 +0800 Subject: [PATCH] struct is better redis.Error is not satisfy with type error. so it should be a struct. --- error.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/error.go b/error.go index 64eafbb..c45ec0b 100644 --- a/error.go +++ b/error.go @@ -27,10 +27,8 @@ import ( // Go-Redis API level error type // -type Error interface { +type Error struct { error - // if true Error is a RedisError - IsRedisError() bool } // ----------------------------------------------------------------------