mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-21 10:32:35 +01: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
|
||
|
}
|