package
0.1.1
Repository: https://github.com/zaporter/go-update-mongo.git
Documentation: pkg.go.dev

# Packages

Package testiterator provides a helper for checking iterator implementations.

# Functions

ConsumeCount returns the number of elements in the iterator.
ConsumeValues consumes all values from iterator until it is done.
ConsumeValuesN consumes up to n values from iterator or until it is done.
ForFunc returns an iterator for the given function.
ForSlice returns an iterator over a slice.
NewMultiCloser returns a new MultiCloser for non-nil closers.
Values returns an iterator over values of another iterator.
WithClose wraps an iterator with a custom close function.

# Variables

ErrIteratorDone is returned when the iterator is read to the end or closed.

# Structs

MultiCloser is a helper for closing multiple closers.

# Interfaces

Closer is a part of Interface for closing iterators.
Interface is an iterator interface.

# Type aliases

CloserFunc converts a function (such as context.CancelFunc) to a Closer.
NextFunc is a part of Interface for the Next method.