Added Error to decoded types.

Removed cmd_functions.go as it is replaced by plugin system.
Consolidated get and set plugins into one plugin setget that handles GET, SET and MGET commands.
Plugins can declare multiple commands that they handle.
This commit is contained in:
Kelvin Clement Mwinuka
2023-07-03 12:35:37 +08:00
parent 9b830f9750
commit f3d36b3c3d
8 changed files with 189 additions and 204 deletions

View File

@@ -17,7 +17,7 @@ func Decode(raw string) ([]string, error) {
return nil, err
}
if utils.Contains[string]([]string{"SimpleString", "Integer"}, v.Type().String()) {
if utils.Contains[string]([]string{"SimpleString", "Integer", "Error"}, v.Type().String()) {
return []string{v.String()}, nil
}