From f543976e04fbc4a5f0fbb8a6e1f5e88eebc8c5e7 Mon Sep 17 00:00:00 2001 From: Yingchun Lai Date: Tue, 19 Dec 2023 13:30:14 +0800 Subject: [PATCH] fix int to string by using fmt.Sprint(i) --- go-client/example/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go-client/example/main.go b/go-client/example/main.go index 2d679f2885b..cab1c462ed3 100644 --- a/go-client/example/main.go +++ b/go-client/example/main.go @@ -65,7 +65,7 @@ func main() { for t := 0; t < 10; t++ { var sortKeys [][]byte for i := 0; i < 10; i++ { - sortKeys = append(sortKeys, []byte("sort"+string(i))) + sortKeys = append(sortKeys, []byte("sort"+fmt.Sprint(i))) } for i := 0; i < 10; i++ { err = tb.Set(context.Background(), []byte("hash"), sortKeys[i], value)