1
0
mirror of https://github.com/redis/go-redis.git synced 2025-08-08 23:42:06 +03:00

Add SliceCmd.Scan() (hscan pkg) and tests

This commit is contained in:
Kailash Nadh
2021-02-02 13:04:52 +05:30
parent 380ab17274
commit a4144ea98e
4 changed files with 135 additions and 2 deletions

View File

@@ -61,7 +61,7 @@ func getStructFields(t reflect.Type, fieldTag string) *structFields {
for i := 0; i < num; i++ {
f := t.Field(i)
tag := t.Field(i).Tag.Get(fieldTag)
tag := f.Tag.Get(fieldTag)
if tag == "" || tag == "-" {
continue
}