working on List

This commit is contained in:
bel
2019-06-21 17:13:18 -06:00
parent 6ac77d247e
commit ade973d19d
13 changed files with 178 additions and 2 deletions

16
db.go
View File

@@ -8,6 +8,7 @@ import (
type DB interface {
Get(string, ...string) ([]byte, error)
Set(string, []byte, ...string) error
List([]string, ...string) ([]string, error)
Close() error
}
@@ -57,3 +58,18 @@ func resolveNamespace(ns []string) string {
}
return namespace
}
func resolveLimits(input []string) []string {
output := []string{"", ""}
if len(input) > 0 {
output[0] = input[0]
} else {
output[0] = " "
}
if len(input) > 1 {
output[1] = input[1]
} else {
output[1] = "}}}}}}}}}}}}}"
}
return output[:]
}