feat: add encoding.BinaryUnmarshaler in Scan

This commit is contained in:
sojung.kim 2024-10-03 20:18:54 +09:00
parent e63669e170
commit a47786a246
1 changed files with 2 additions and 0 deletions

View File

@ -109,6 +109,8 @@ func (s StructValue) Scan(key string, value string) error {
return scan.ScanRedis(value)
case encoding.TextUnmarshaler:
return scan.UnmarshalText(util.StringToBytes(value))
case encoding.BinaryUnmarshaler:
return scan.UnmarshalBinary(util.StringToBytes(value))
}
}