Compare commits

..

No commits in common. "daec816a3e0ba47629f6ee400ea7b5fe4cce51d5" and "d2fce05461b33747928060c2f1a27fef1211cc9c" have entirely different histories.

2 changed files with 3 additions and 12 deletions

View File

@ -25,15 +25,6 @@ func init() {
}
func formatItem(k []byte, v []byte) (string, error) {
o, err := debug.FromKey(k)
if err != nil {
return "", err
}
s := fmt.Sprintf("%vValue: %v\n\n", o, string(v))
return s, nil
}
func main() {
config.LoadConfig()
@ -73,12 +64,12 @@ func main() {
if k == nil {
break
}
r, err := formatItem(k, v)
o, err := debug.FromKey(k)
if err != nil {
fmt.Fprintf(os.Stderr, "format db item error: %v", err)
fmt.Fprintf(os.Stderr, err.Error())
os.Exit(1)
}
fmt.Printf(r)
fmt.Printf("%vValue: %v\n\n", o, string(v))
}
err = store.Close()