Iterator interface now embeds fmt.Stringer
This commit is contained in:
parent
2b80ba6789
commit
9e4252173b
@ -27,6 +27,7 @@ const (
|
|||||||
|
|
||||||
type Iterator interface {
|
type Iterator interface {
|
||||||
Typer
|
Typer
|
||||||
|
fmt.Stringer
|
||||||
Next() (item any, err error) // must return io.EOF after the last item
|
Next() (item any, err error) // must return io.EOF after the last item
|
||||||
Current() (item any, err error)
|
Current() (item any, err error)
|
||||||
Index() int
|
Index() int
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user