- 
                Notifications
    You must be signed in to change notification settings 
- Fork 437
Open
Description
Lines 943 to 957 in bf1c66b
| if e != nil { | |
| return offset, e | |
| } | |
| if o == 0 { | |
| break | |
| } | |
| if t != NotExist { | |
| cb(v, t, offset+o-len(v), e) | |
| } | |
| if e != nil { | |
| break | |
| } | 
how to indicate that cb return an error for ArrayEach, like ObjectEach do.
Lines 1053 to 1060 in bf1c66b
| // Step 3: find the associated value, then invoke the callback | |
| if value, valueType, off, err := Get(data[offset:]); err != nil { | |
| return err | |
| } else if err := callback(key, value, valueType, offset+off); err != nil { // Invoke the callback here! | |
| return err | |
| } else { | |
| offset += off | |
| } | 
lnshi, vejnar, rikkegammelmark, growler, grind-t and 4 more
Metadata
Metadata
Assignees
Labels
No labels