5
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2024-11-10 12:10:26 +00:00
matterbridge/vendor/github.com/d5/tengo/objects/indexable.go

10 lines
436 B
Go
Raw Normal View History

package objects
// Indexable is an object that can take an index and return an object.
type Indexable interface {
// IndexGet should take an index Object and return a result Object or an error.
// If error is returned, the runtime will treat it as a run-time error and ignore returned value.
// If nil is returned as value, it will be converted to Undefined value by the runtime.
IndexGet(index Object) (value Object, err error)
}