Skip to content

Commit 72cdd5c

Browse files
committed
feat: add encoding.BinaryUnmarshaler in Scan
1 parent 7d56a2c commit 72cdd5c

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)