Skip to content

Commit 6167734

Browse files
committed
add json key for dictionary
1 parent 3a4f122 commit 6167734

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/db/types/dictionary.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ import (
1818

1919
// KeyValue represents a key-value pair with generic types
2020
type KeyValue[K comparable, V any] struct {
21-
Key K
22-
Value V
21+
Key K `json:"key"`
22+
Value V `json:"value"`
2323
}
2424

2525
// Dictionary represents an array of KeyValue pairs with thread-safety

0 commit comments

Comments
 (0)