ForEach call the cb function for each object contained on this iter until an error happens or the end of the iter is reached. If ErrStop is sent the iteration is stop but no error is returned. The iterator is closed.
(cb func(plumbing.EncodedObject) error)
| 161 | // an error happens or the end of the iter is reached. If ErrStop is sent |
| 162 | // the iteration is stop but no error is returned. The iterator is closed. |
| 163 | func (iter *EncodedObjectLookupIter) ForEach(cb func(plumbing.EncodedObject) error) error { |
| 164 | return ForEachIterator(iter, cb) |
| 165 | } |
| 166 | |
| 167 | // Close releases any resources used by the iterator. |
| 168 | func (iter *EncodedObjectLookupIter) Close() { |