We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b9e1c4 commit cc6f394Copy full SHA for cc6f394
internal/hscan/hscan.go
@@ -67,6 +67,9 @@ func Struct(dst interface{}) (StructValue, error) {
67
68
// Scan scans the results from a key-value Redis map result set to a destination struct.
69
// The Redis keys are matched to the struct's field with the `redis` tag.
70
+// This method will attempt to unmarshal each field and will return an error if any of the
71
+// fields cannot be unmarshalled. The destination struct will have the failed fields set to
72
+// their zero value.
73
func Scan(dst interface{}, keys []interface{}, vals []interface{}) error {
74
if len(keys) != len(vals) {
75
return errors.New("args should have the same number of keys and vals")
0 commit comments