iterutils

package module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 13, 2022 License: MIT Imports: 1 Imported by: 0

README

iterutils

build Go report codecov Documentation

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Iterator

type Iterator interface {
	// Next stores next value to provided pointer.
	// Returns false if there is no more values.
	Next(*string) bool

	// Resets resets Iterator state.
	Reset()

	// Count returns number of values in Iterator.
	Count() uint64

	// Close frees iternal iterator resources.
	Close() error
}

Iterator is common iterator interface.

func Combine

func Combine(iterators ...Iterator) Iterator

Combine combines multiple iterators.

func Strings

func Strings(items ...string) Iterator

Strings create strings iterator.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL