Documentation
¶
Index ¶
- Constants
- Variables
- func NewProperty(get, set l.LGFunction) l.LGFunction
- func PushNewUserData(L *l.LState, fn TakeUserData, mt string)
- type AssetDirectory
- type AssetFile
- type Config
- type ConfigFn
- type Configuration
- type Detail
- type FakeFile
- type GetModule
- type LMetaFunc
- type Lua
- func (L *Lua) CallShv(fn string, nargs, nresults int) error
- func (L *Lua) CallWithTraceback(nargs, nresults int) error
- func (L *Lua) CheckNargs(n int)
- func (L *Lua) GetModule(name string) (*l.LTable, error)
- func (L *Lua) PushString(s string)
- func (L *Lua) RegisterFuncsOn(name string, funcs map[string]l.LGFunction)
- func (L *Lua) RegistryIndex() *l.LTable
- func (L *Lua) RequireFn() *l.LFunction
- func (L *Lua) TracebackFn() *l.LFunction
- type MLoadEmb
- type MLoadMT
- type MLoader
- type MetaLGFunc
- type Module
- type RegisterWith
- type Table
- type Tables
- type TakeUserData
Constants ¶
View Source
const ARCH = runtime.GOARCH
View Source
const PLATFORM = runtime.GOOS
View Source
const ShvModuleName = "shv"
Variables ¶
View Source
var NoTableError = xrror.Xrror("no table named %s").Out
View Source
var ResourceFS *bindataFS = &bindataFS{
prefix: "",
tree: _bintree,
data: _bindata,
}
Functions ¶
func NewProperty ¶
func NewProperty(get, set l.LGFunction) l.LGFunction
func PushNewUserData ¶
func PushNewUserData(L *l.LState, fn TakeUserData, mt string)
Types ¶
type AssetDirectory ¶
func NewAssetDirectory ¶
func NewAssetDirectory(name string, children []string, fs *bindataFS) *AssetDirectory
type AssetFile ¶
func NewAssetFile ¶
type Configuration ¶
type LMetaFunc ¶
type LMetaFunc struct {
Key string
Value MetaLGFunc
}
func DefaultIdx ¶
func ImmutableNewIdx ¶
func ImmutableNewIdx() *LMetaFunc
type Lua ¶
type Lua struct {
Configuration
*l.LState
}
func (*Lua) CallWithTraceback ¶
func (*Lua) CheckNargs ¶
func (*Lua) PushString ¶
func (*Lua) RegisterFuncsOn ¶
func (L *Lua) RegisterFuncsOn(name string, funcs map[string]l.LGFunction)
func (*Lua) RegistryIndex ¶
func (*Lua) TracebackFn ¶
type MetaLGFunc ¶
type MetaLGFunc func(*Table, string) l.LGFunction
type Module ¶
type Module interface {
Tag() string
AddLGFunc(string, l.LGFunction)
Loader(*l.LState) int
AddMT(...MLoadMT)
LoadMT(*l.LState)
Register(*l.LState, *Table)
AddEmb(...MLoadEmb)
LoadEmb(*Lua) error
}
var (
ShvModule Module = mkShvModule()
)
type RegisterWith ¶
type Table ¶
type Table struct {
Name string
Parent []*Table
Meta []*LMetaFunc
Property map[string]l.LGFunction
Method map[string]l.LGFunction
}
type TakeUserData ¶
Click to show internal directories.
Click to hide internal directories.