1
0
mirror of https://github.com/MontFerret/ferret.git synced 2024-12-16 11:37:36 +02:00
ferret/pkg/runtime/collections/noop.go

14 lines
233 B
Go
Raw Normal View History

package collections
type noopIterator struct{}
var NoopIterator = &noopIterator{}
func (iterator *noopIterator) HasNext() bool {
return false
}
func (iterator *noopIterator) Next() (DataSet, error) {
return nil, ErrExhausted
}