Versions in this module Expand all Collapse all v1 v1.1.0 May 26, 2019 v1.0.1 May 19, 2019 Changes in this version type State + func (l *State) Count(i int) int v1.0.0 Apr 28, 2019 Changes in this version + const FirstUpVal + const GlobalsIndex + const OpAdd + const OpBinAND + const OpBinNot + const OpBinOR + const OpBinShiftL + const OpBinShiftR + const OpBinXOR + const OpDiv + const OpEqual + const OpIDiv + const OpLessOrEqual + const OpLessThan + const OpMod + const OpMul + const OpPow + const OpSub + const OpUMinus + const RegistryIndex + func ConvNumber(s string, integer, float bool) (valid, iok bool, i int64, f float64) + type STypeID int + const STypeFloat + const STypeInteger + const STypeUnknown + func (typ STypeID) String() string + type State struct + NativeTrace bool + func NewState() *State + func (l *State) AbsIndex(i int) int + func (l *State) Arith(op opCode) + func (l *State) Call(args, rtns int) + func (l *State) Compare(i1, i2 int, op opCode) bool + func (l *State) CompareRaw(i1, i2 int, op opCode) bool + func (l *State) Dump(i int, strip bool) []byte + func (l *State) Error() + func (l *State) ForEach(t int, f func() bool) + func (l *State) ForEachRaw(t int, f func() bool) + func (l *State) GetIter(i int) + func (l *State) GetMetaField(i int, name string) TypeID + func (l *State) GetMetaTable(i int) bool + func (l *State) GetRaw(i int) interface{} + func (l *State) GetTable(i int) TypeID + func (l *State) GetTableRaw(i int) TypeID + func (l *State) Insert(i int) + func (l *State) IsNil(i int) bool + func (l *State) Length(i int) int + func (l *State) LengthRaw(i int) int + func (l *State) LoadBinary(in io.Reader, name string, env int) error + func (l *State) LoadText(in io.Reader, name string, env int) error + func (l *State) NewTable(as, hs int) + func (l *State) OptFloat(i int, d float64) float64 + func (l *State) OptInteger(i int, d int64) int64 + func (l *State) OptString(i int, d string) string + func (l *State) PCall(args, rtns int, trace bool) (msg interface{}) + func (l *State) Pop(n int) + func (l *State) Preload(name string, loader func(*State) int) + func (l *State) PrintStack() + func (l *State) Push(v interface{}) + func (l *State) PushClosure(f func(*State) int, v ...int) + func (l *State) PushIndex(i int) + func (l *State) STypeOf(i int) STypeID + func (l *State) Set(d, s int) + func (l *State) SetGlobal(name string) + func (l *State) SetMetaTable(i int) + func (l *State) SetTable(i int) + func (l *State) SetTableRaw(i int) + func (l *State) SetUpValue(f, i, v int) bool + func (l *State) ToBoolean(i int) bool + func (l *State) ToFloat(i int) float64 + func (l *State) ToInteger(i int) int64 + func (l *State) ToString(i int) string + func (l *State) TryFloat(i int) (float64, error) + func (l *State) TryInteger(i int) (int64, error) + func (l *State) TypeOf(i int) TypeID + type TypeID int + const TypeBoolean + const TypeFunction + const TypeNil + const TypeNumber + const TypeString + const TypeTable + const TypeUnknown + const TypeUserData + func (typ TypeID) String() string