lua

package
v0.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2020 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DebugValue added in v0.20.0

func DebugValue(st *lua.State, at int)

func RegisterAPI added in v0.20.0

func RegisterAPI(api API)

Types

type API added in v0.20.0

type API interface {
	Name() string
	Version() hub.Version
	Compatible(s *Script) bool
	New(s *Script) Instance
}

type Func added in v0.20.0

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

func (*Func) Call added in v0.20.0

func (f *Func) Call(args ...interface{})

func (*Func) CallRet added in v0.25.0

func (f *Func) CallRet(ret func(st *lua.State), args ...interface{})

type Instance added in v0.20.0

type Instance interface {
	Start()
	Close() error
}

type M

type M = map[string]interface{}

type Script

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

func (*Script) ExecFile

func (s *Script) ExecFile(path string) error

func (*Script) Hub added in v0.20.0

func (s *Script) Hub() *hub.Hub

func (*Script) Name added in v0.20.0

func (s *Script) Name() string

func (*Script) Push added in v0.20.0

func (s *Script) Push(v interface{})

func (*Script) Set added in v0.20.0

func (s *Script) Set(k string, o interface{})

func (*Script) SetRawFuncMap added in v0.20.0

func (s *Script) SetRawFuncMap(k string, m map[string]lua.Function)

func (*Script) SetStringMap added in v0.20.0

func (s *Script) SetStringMap(k string, m map[string]string)

func (*Script) State added in v0.20.0

func (s *Script) State() *lua.State

func (*Script) ToFunc added in v0.20.0

func (s *Script) ToFunc(index int, ret int) *Func

func (*Script) ToFuncOn added in v0.20.0

func (s *Script) ToFuncOn(st *lua.State, index int, ret int) *Func

type UserData added in v0.20.0

type UserData struct {
	Ptr interface{}
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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