native

package
v0.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL