Skip to content

Commit abcd1b6

Browse files
committed
update description format
1 parent 2675a3d commit abcd1b6

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

images/ui.png

276 KB
Loading

internal/tui/item.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44

55
package tui
66

7-
import "strconv"
7+
import (
8+
"fmt"
9+
)
810

911
type item struct {
1012
keyType string
@@ -20,6 +22,6 @@ func (i item) Description() string {
2022
if i.err {
2123
return "get error: " + i.val
2224
}
23-
return "keySize: " + strconv.Itoa(len(i.key)) + ", valueSize: " + strconv.Itoa(len(i.val))
25+
return fmt.Sprintf("key: %d bytes, value: %d bytes", len(i.key), len(i.val))
2426
}
2527
func (i item) FilterValue() string { return i.key }

0 commit comments

Comments
 (0)