mirror of
https://github.com/42wim/matterbridge.git
synced 2024-11-26 12:42:03 -08:00
16 lines
336 B
Go
16 lines
336 B
Go
|
package objects
|
||
|
|
||
|
// Iterator represents an iterator for underlying data type.
|
||
|
type Iterator interface {
|
||
|
Object
|
||
|
|
||
|
// Next returns true if there are more elements to iterate.
|
||
|
Next() bool
|
||
|
|
||
|
// Key returns the key or index value of the current element.
|
||
|
Key() Object
|
||
|
|
||
|
// Value returns the value of the current element.
|
||
|
Value() Object
|
||
|
}
|