Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Shopify/go-lua
/ functions
Functions
673 in github.com/Shopify/go-lua
⨍
Functions
673
◇
Types & classes
50
↓ 2 callers
Function
upValueHelper
(f func(*State, int, int) (string, bool), returnValueCount int)
debug.go:393
↓ 2 callers
Function
write
(l *State, f *os.File, argIndex int)
io.go:92
↓ 2 callers
Method
writePC
(p pc)
dump.go:26
↓ 1 callers
Function
AtPanic
AtPanic sets a new panic function and returns the old one.
lua.go:628
↓ 1 callers
Function
CallMeta
CallMeta calls a metamethod. If the object at index has a metatable and this metatable has a field event, this function calls this field passing the
auxiliary.go:103
↓ 1 callers
Method
CheckConflict
(t *assignmentTarget, e exprDesc)
code.go:976
↓ 1 callers
Function
CheckOption
(l *State, index int, def string, list []string)
auxiliary.go:405
↓ 1 callers
Method
CheckRepeatedLabel
(name string)
code.go:203
↓ 1 callers
Method
CheckStack
(n int)
code.go:547
↓ 1 callers
Function
CheckUserData
CheckUserData checks whether the function argument at index is a userdata of the type name (see NewMetaTable) and returns the userdata (see ToUserData
auxiliary.go:285
↓ 1 callers
Method
CloseConstructor
(pc, tableRegister, pending, arrayCount, hashCount int, e exprDesc)
code.go:1100
↓ 1 callers
Method
CloseForBody
(prep, base, line, n int, isNumeric bool)
code.go:1129
↓ 1 callers
Method
CloseFunction
()
code.go:120
↓ 1 callers
Method
CloseMainFunction
()
code.go:1149
↓ 1 callers
Method
Compare
Compare compares two values. http://www.lua.org/manual/5.2/manual.html#lua_compare
lua.go:745
↓ 1 callers
Method
Context
Context is called by a continuation function to retrieve the status of the thread and context information. When called in the origin function, it will
lua.go:323
↓ 1 callers
Function
DebugHook
DebugHook returns the current hook function.
debug.go:177
↓ 1 callers
Function
DebugHookCount
DebugHookCount returns the current hook count.
debug.go:183
↓ 1 callers
Function
DebugHookMask
DebugHookMask returns the current hook mask.
debug.go:180
↓ 1 callers
Method
FlushFieldToConstructor
(tableRegister, freeRegisterCount int, k exprDesc, v func() exprDesc)
code.go:1084
↓ 1 callers
Method
FlushToConstructor
(tableRegister, pending, arrayCount int, e exprDesc)
code.go:1091
↓ 1 callers
Method
Infix
(op int, e exprDesc)
code.go:900
↓ 1 callers
Method
IsBoolean
IsBoolean verifies that the value at index is a boolean. http://www.lua.org/manual/5.2/manual.html#lua_isboolean
lua.go:1511
↓ 1 callers
Method
IsThread
IsThread verifies that the value at index is a thread. http://www.lua.org/manual/5.2/manual.html#lua_isthread
lua.go:1516
↓ 1 callers
Method
JumpTo
(target int)
code.go:376
↓ 1 callers
Method
Length
Length of the value at index; it is equivalent to the # operator in Lua. The result is pushed on the stack. http://www.lua.org/manual/5.2/manual.html
lua.go:1469
↓ 1 callers
Method
Less
(i, j int)
table.go:26
↓ 1 callers
Function
NewLibraryTable
(l *State, functions []RegistryFunction)
auxiliary.go:455
↓ 1 callers
Function
NewMetaTable
NewMetaTable returns false if the registry already has the key name. Otherwise, creates a new table to be used as a metatable for userdata, adds it to
auxiliary.go:249
↓ 1 callers
Method
OpenConstructor
()
code.go:1078
↓ 1 callers
Method
OpenForBody
(base, n int, isNumeric bool)
code.go:1117
↓ 1 callers
Method
OpenFunction
(line int)
code.go:114
↓ 1 callers
Method
OpenMainFunction
()
code.go:1144
↓ 1 callers
Method
Postfix
(op int, e1, e2 exprDesc, line int)
code.go:929
↓ 1 callers
Method
Prefix
(op int, e exprDesc, line int)
code.go:884
↓ 1 callers
Method
PushLightUserData
PushLightUserData pushes a light user data onto the stack. Userdata represents Go values in Lua. A light userdata is an interface{}. Its equality matc
lua.go:1459
↓ 1 callers
Method
RawLength
RawLength returns the length of the value at index. For strings, this is the length. For tables, this is the result of the # operator with no metame
lua.go:813
↓ 1 callers
Method
Register
Register sets the Go function f as the new value of global name. If name was already defined, it is overwritten. http://www.lua.org/manual/5.2/manual
lua.go:1222
↓ 1 callers
Function
Require
Require calls function f with string name as an argument and sets the call result in package.loaded[name], as if that function had been called through
auxiliary.go:441
↓ 1 callers
Method
Return
(e exprDesc, resultCount int)
code.go:380
↓ 1 callers
Method
Self
(e, key exprDesc)
code.go:757
↓ 1 callers
Function
SetMetaTableNamed
(l *State, name string)
auxiliary.go:264
↓ 1 callers
Method
SetTable
SetTable does the equivalent of table[key]=v, where table is the value at index, v is the value at the top of the stack and key is the value just belo
lua.go:1098
↓ 1 callers
Function
SetUpValue
SetUpValue sets the value of a closure's upvalue. It assigns the value at the top of the stack to the upvalue and returns its name. It also pops a va
lua.go:1278
↓ 1 callers
Method
SetUserValue
SetUserValue pops a table or nil from the stack and sets it as the new value associated to the userdata at index. http://www.lua.org/manual/5.2/manua
lua.go:1134
↓ 1 callers
Method
SingleVariable
(name string)
code.go:1068
↓ 1 callers
Method
ToThread
ToThread converts the value at index to a Lua thread (a State). This value must be a thread, otherwise the return value will be nil. http://www.lua.o
lua.go:854
↓ 1 callers
Method
ToUnsigned
ToUnsigned converts the Lua value at index to a Go uint. The Lua value must be a number or a string convertible to a number. If the number is not an
lua.go:787
↓ 1 callers
Function
UpValueId
UpValueId returns a unique identifier for the upvalue numbered n from the closure at index f. Parameters f and n are as in UpValue (but n cannot be gr
lua.go:1303
↓ 1 callers
Function
UpValueJoin
UpValueJoin makes the n1-th upvalue of the Lua closure at index f1 refer to the n2-th upvalue of the Lua closure at index f2.
lua.go:1315
↓ 1 callers
Method
UserValue
UserValue pushes onto the stack the Lua value associated with the userdata at index. This value must be a table or nil. http://www.lua.org/manual/5.
lua.go:1069
↓ 1 callers
Function
abs
(i int)
code.go:254
↓ 1 callers
Method
adjustVarArgs
(p *prototype, argCount int)
stack.go:329
↓ 1 callers
Method
advanceAndSave
(c rune)
scanner.go:136
↓ 1 callers
Function
apiCheckStackSpace
(l *State, n int)
lua.go:1388
↓ 1 callers
Method
apiIncrementTop
()
lua.go:290
↓ 1 callers
Method
arithError
(v1, v2 value)
debug.go:96
↓ 1 callers
Function
arrayIndex
(k value)
tables.go:215
↓ 1 callers
Method
assertEqual
(a, b interface{})
code.go:300
↓ 1 callers
Method
assignment
(t *assignmentTarget, variableCount int)
parser.go:319
↓ 1 callers
Function
binaryOp
(op rune)
parser.go:212
↓ 1 callers
Method
booleanConstant
(b bool)
code.go:574
↓ 1 callers
Method
breakLabel
()
code.go:291
↓ 1 callers
Method
callHook
(ci *callInfo)
stack.go:318
↓ 1 callers
Method
callTagMethodV
(f, p1, p2, p3 value)
tag_methods.go:94
↓ 1 callers
Method
checkHeader
()
undump.go:290
↓ 1 callers
Function
checkLoad
(l *State, loaded bool, fileName string)
load.go:41
↓ 1 callers
Function
close
(l *State)
io.go:84
↓ 1 callers
Method
collectValidLines
(f closure)
debug.go:274
↓ 1 callers
Function
comparePrototypes
(t *testing.T, a, b *prototype)
parser_test.go:110
↓ 1 callers
Method
concatError
(v1, v2 value)
debug.go:103
↓ 1 callers
Function
countLevels
(l *State)
auxiliary.go:28
↓ 1 callers
Function
createABx
(op opCode, a, bx int)
instructions.go:172
↓ 1 callers
Function
createAx
(op opCode, a int)
instructions.go:178
↓ 1 callers
Function
createSearchersTable
(l *State)
load.go:71
↓ 1 callers
Function
debugValue
(v value)
types.go:14
↓ 1 callers
Method
dischargeJumpPC
()
code.go:483
↓ 1 callers
Method
dropLastInstruction
()
code.go:314
↓ 1 callers
Method
dump
(p *prototype, w io.Writer)
dump.go:148
↓ 1 callers
Method
dumpHeader
()
dump.go:144
↓ 1 callers
Method
encodeNot
(e exprDesc)
code.go:818
↓ 1 callers
Method
execute
()
vm.go:930
↓ 1 callers
Method
executeFunctionTable
()
vm.go:932
↓ 1 callers
Method
expressionStatement
()
parser.go:586
↓ 1 callers
Function
findField
(l *State, objectIndex, level int)
auxiliary.go:142
↓ 1 callers
Function
findFile
(l *State, name, field, dirSep string)
load.go:32
↓ 1 callers
Function
findHelper
(l *State, isFind bool)
string.go:20
↓ 1 callers
Function
findLoader
(l *State, name string)
load.go:11
↓ 1 callers
Method
findUpValue
(level int)
stack.go:215
↓ 1 callers
Function
foldConstants
(op opCode, e1, e2 exprDesc)
code.go:853
↓ 1 callers
Method
forList
(name string)
parser.go:369
↓ 1 callers
Method
forNumeric
(name string, line int)
parser.go:349
↓ 1 callers
Method
forStatement
(line int)
parser.go:386
↓ 1 callers
Function
formatHelper
(l *State, fs string, argCount int)
string.go:71
↓ 1 callers
Function
functionInfo
(p Debug, f closure)
debug.go:206
↓ 1 callers
Function
functionName
(l *State, d Debug)
auxiliary.go:11
↓ 1 callers
Method
functionName
(ci *callInfo)
debug.go:228
↓ 1 callers
Method
functionName
()
parser.go:548
↓ 1 callers
Method
functionStatement
(line int)
parser.go:557
↓ 1 callers
Method
ifStatement
(line int)
parser.go:430
← previous
next →
401–500 of 673, ranked by callers