utils

package
v0.5.14 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: LGPL-2.1 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CallCommandFunction

func CallCommandFunction(from interface{}, name string, first interface{}, rest map[string]interface{}) (interface{}, error)

func GetFunctionByName

func GetFunctionByName(from interface{}, name string) (reflect.Value, error)

func ListModuleCommands

func ListModuleCommands(module Module, skipNames ...string) []string

Types

type DefaultExecutor

type DefaultExecutor struct {
	// contains filtered or unexported fields
}

func NewDefaultExecutor

func NewDefaultExecutor(from interface{}) *DefaultExecutor

func (*DefaultExecutor) ExecuteCommand

func (self *DefaultExecutor) ExecuteCommand(name string, arg interface{}, objargs map[string]interface{}) (interface{}, error)

func (*DefaultExecutor) FormatCommandName

func (self *DefaultExecutor) FormatCommandName(name string) string

func (*DefaultExecutor) SetInstance

func (self *DefaultExecutor) SetInstance(from interface{})

type Module

type Module interface {
	ExecuteCommand(name string, arg interface{}, objargs map[string]interface{}) (interface{}, error)
	FormatCommandName(string) string
	SetInstance(interface{})
}

type Scopeable

type Scopeable interface {
	Scope() *scripting.Scope
}

Jump to

Keyboard shortcuts

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