diff options
Diffstat (limited to 'vendor/github.com/d5/tengo/objects/callable.go')
-rw-r--r-- | vendor/github.com/d5/tengo/objects/callable.go | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/vendor/github.com/d5/tengo/objects/callable.go b/vendor/github.com/d5/tengo/objects/callable.go new file mode 100644 index 00000000..a066e1b9 --- /dev/null +++ b/vendor/github.com/d5/tengo/objects/callable.go @@ -0,0 +1,9 @@ +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) +} |