-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add cmd get, delete, keys #119
Conversation
cmd/data.go
Outdated
fmt.Println("get data error: ", err) | ||
return err | ||
} | ||
fmt.Println(string(value[:])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
map be it can replace value[:]
with value
?
cmd/data.go
Outdated
} | ||
err := db.Delete([]byte(key)) | ||
if err != nil { | ||
fmt.Println("get data error: ", err) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
delete data?
cmd/data.go
Outdated
} | ||
list := db.GetListKeys() | ||
for i, bytes := range list { | ||
fmt.Println(i+1, "- ", string(bytes[:])) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The display information may be optimized and more detailed
Is it okay now? If it's not, please let me know what is the problem. |
thanks |
add cmd get, delete, keys
#115 , I will be happy to help if there is a problem. also I handled using put command before start.