mirror of
https://github.com/HDT3213/godis.git
synced 2025-10-06 01:07:06 +08:00
multi database
This commit is contained in:
@@ -18,6 +18,15 @@ func ToCmdLine2(commandName string, args ...string) [][]byte {
|
||||
return result
|
||||
}
|
||||
|
||||
func ToCmdLine3(commandName string, args ...[]byte) [][]byte {
|
||||
result := make([][]byte, len(args)+1)
|
||||
result[0] = []byte(commandName)
|
||||
for i, s := range args {
|
||||
result[i+1] = s
|
||||
}
|
||||
return result
|
||||
}
|
||||
|
||||
// Equals check whether the given value is equal
|
||||
func Equals(a interface{}, b interface{}) bool {
|
||||
sliceA, okA := a.([]byte)
|
||||
|
Reference in New Issue
Block a user