Merge pull request from leizihui/support-mapstrstr

hmset support map[string]string
This commit is contained in:
Vladimir Mihailenco 2021-04-09 08:40:11 +03:00 committed by GitHub
commit 20322ac8ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -67,6 +67,11 @@ func appendArg(dst []interface{}, arg interface{}) []interface{} {
dst = append(dst, k, v)
}
return dst
case map[string]string:
for k, v := range arg {
dst = append(dst, k, v)
}
return dst
default:
return append(dst, arg)
}