iterator

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//ErrNotImplemented ErrNotImplemented error
	EOI           = errors.New("End of iterator")
	NotAnIterator = errors.New("Object Not an iterator")
)

Functions

This section is empty.

Types

type Iterator

type Iterator struct {
	baseobject.BaseObject
}

Iterator iterator

func NewFromJSObject

func NewFromJSObject(obj js.Value) (Iterator, error)

func (Iterator) Iterator_

func (i Iterator) Iterator_() Iterator

func (Iterator) Next

func (i Iterator) Next() (interface{}, interface{}, error)

type IteratorFrom

type IteratorFrom interface {
	Iterator_() Iterator
}

Jump to

Keyboard shortcuts

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