code: func (iter *ObjectIter) ForEach(cb func(Object) error) error {
  	return iter.EncodedObjectIter.ForEach(func(obj plumbing.EncodedObject) error {
  		o, err := iter.toObject(obj)
  		if err == plumbing.ErrInvalidType {
  			return nil
  		}
  
  		if err != nil {
  			return err
  		}
  
  		return cb(o)
  	})
  }
docs: // 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.