1
0
mirror of https://github.com/redis/go-redis.git synced 2025-07-29 17:41:15 +03:00

chore(internal): remove duplicate safe & unsafe

This commit is contained in:
jianghang
2022-08-02 00:05:40 +08:00
parent ce016ed85f
commit b50b1c8f7a
4 changed files with 4 additions and 35 deletions

View File

@ -4,6 +4,8 @@ import (
"fmt"
"strconv"
"time"
"github.com/go-redis/redis/v9/internal/util"
)
func AppendArg(b []byte, v interface{}) []byte {
@ -11,7 +13,7 @@ func AppendArg(b []byte, v interface{}) []byte {
case nil:
return append(b, "<nil>"...)
case string:
return appendUTF8String(b, Bytes(v))
return appendUTF8String(b, util.StringToBytes(v))
case []byte:
return appendUTF8String(b, v)
case int: