Skip to content

Commit 2ea6e51

Browse files
committed
feat: add encoding.BinaryUnmarshaler in Scan
1 parent 7cc1e32 commit 2ea6e51

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)