mirror of
https://github.com/EchoVault/SugarDB.git
synced 2025-10-15 04:20:57 +08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user