mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-23 14:01:35 +00: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
|
||
|
}
|