iterator.go: new interface ExtIterator derived from Iterator
This commit is contained in:
parent
7a0ba26aa3
commit
0dbb0ba515
@ -13,6 +13,10 @@ type Iterator interface {
|
||||
Next() (item any, err error) // must return io.EOF after the last item
|
||||
Current() (item any, err error)
|
||||
Index() int
|
||||
}
|
||||
|
||||
type ExtIterator interface {
|
||||
Iterator
|
||||
HasOperation(name string) bool
|
||||
CallOperation(name string, args []any) (value any, err error)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user