multi database

This commit is contained in:
hdt3213
2021-08-28 22:31:23 +08:00
parent c9f33d08c2
commit e91294bcf4
46 changed files with 1135 additions and 821 deletions

View File

@@ -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)