mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-12-28 04:25:39 +00:00
10 lines
314 B
Go
10 lines
314 B
Go
|
package objects
|
||
|
|
||
|
// Callable represents an object that can be called like a function.
|
||
|
type Callable interface {
|
||
|
// Call should take an arbitrary number of arguments
|
||
|
// and returns a return value and/or an error,
|
||
|
// which the VM will consider as a run-time error.
|
||
|
Call(args ...Object) (ret Object, err error)
|
||
|
}
|