Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Append ¶
func Append(en envir.Environment, name string, fn interface{})
func AppendNatives ¶
func AppendNatives(en envir.Environment)
Types ¶
type Native ¶
type Native struct {
// contains filtered or unexported fields
}
func NewNative ¶
func NewNative(e envir.Environment) *Native
func (*Native) Environment ¶
func (n *Native) Environment() envir.Environment
type NativeFunction ¶
type NativeFunction struct {
// contains filtered or unexported fields
}
func NewNativeFunction ¶
func NewNativeFunction(name string, fn interface{}) (*NativeFunction, error)
func (*NativeFunction) GetName ¶
func (n *NativeFunction) GetName() string
func (*NativeFunction) GetNumParam ¶
func (n *NativeFunction) GetNumParam() int
func (*NativeFunction) Invoke ¶
func (n *NativeFunction) Invoke(args []interface{}) (interface{}, error)
func (*NativeFunction) String ¶
func (n *NativeFunction) String() string
Click to show internal directories.
Click to hide internal directories.