Item returns the current item (key + record) if valid This is useful for advanced use cases that need direct access to the record
()
| 129 | // Item returns the current item (key + record) if valid |
| 130 | // This is useful for advanced use cases that need direct access to the record |
| 131 | func (it *Iterator) Item() *core.Item[core.Record] { |
| 132 | if !it.valid { |
| 133 | return nil |
| 134 | } |
| 135 | return it.currentItem |
| 136 | } |
| 137 | |
| 138 | func (it *Iterator) Release() { |
| 139 | it.iter.Release() |
no outgoing calls