Enumerate iterator types
This commit is contained in:
parent
1f67913ed9
commit
cd46452b63
23 changed files with 145 additions and 68 deletions
|
|
@ -174,7 +174,7 @@ func NewNull() *Null {
|
|||
func (it *Null) Clone() graph.Iterator { return NewNull() }
|
||||
|
||||
// Name the null iterator.
|
||||
func (it *Null) Type() string { return "null" }
|
||||
func (it *Null) Type() graph.Type { return graph.Null }
|
||||
|
||||
// A good iterator will close itself when it returns true.
|
||||
// Null has nothing it needs to do.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue