Skip to content

Commit a5a0e2f

Browse files
committed
feat: add encoding.BinaryUnmarshaler in Scan
1 parent cc9bcb0 commit a5a0e2f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/hscan/structmap.go

+2
Original file line numberDiff line numberDiff line change
@@ -109,6 +109,8 @@ func (s StructValue) Scan(key string, value string) error {
109109
return scan.ScanRedis(value)
110110
case encoding.TextUnmarshaler:
111111
return scan.UnmarshalText(util.StringToBytes(value))
112+
case encoding.BinaryUnmarshaler:
113+
return scan.UnmarshalBinary(util.StringToBytes(value))
112114
}
113115
}
114116

0 commit comments

Comments
 (0)