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
↓ 8 callers
Method
Jump
()
code.go:369
↓ 8 callers
Function
LoadFile
(l *State, fileName, mode string)
auxiliary.go:484
↓ 8 callers
Function
NewLibrary
(l *State, functions []RegistryFunction)
auxiliary.go:457
↓ 8 callers
Function
OpenLibraries
OpenLibraries opens all standard libraries. Alternatively, the host program can open them individually by using Require to call BaseOpen (for the basi
libs.go:31
↓ 8 callers
Method
Remove
Remove the element at the given valid index, shifting down the elements above index to fill the gap. This function cannot be called with a pseudo-inde
lua.go:579
↓ 8 callers
Method
checkStack
(n int)
stack.go:449
↓ 8 callers
Method
expression
()
parser.go:281
↓ 8 callers
Method
scan
()
scanner.go:412
↓ 8 callers
Method
setCallStatus
(flag callStatus)
stack.go:140
↓ 8 callers
Function
toFile
(l *State)
io.go:21
↓ 8 callers
Method
write
(data interface{})
dump.go:16
↓ 7 callers
Method
PushGoFunction
PushGoFunction pushes a Function implemented in Go onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushcfunction
lua.go:1485
↓ 7 callers
Function
Stack
Stack gets information about the interpreter runtime stack. It returns a Frame identifying the activation record of the function executing at a given
debug.go:193
↓ 7 callers
Function
UpValueIndex
UpValueIndex returns the pseudo-index that represents the i-th upvalue of the running function. http://www.lua.org/manual/5.2/manual.html#lua_upvalue
lua.go:1385
↓ 7 callers
Method
atInt
(k int)
tables.go:53
↓ 7 callers
Method
setArg
(pos, size uint, arg int)
instructions.go:139
↓ 7 callers
Method
setTableAt
(t value, key value, val value)
vm.go:44
↓ 7 callers
Function
trim
(x uint)
bit32.go:9
↓ 7 callers
Method
writeByte
(b byte)
dump.go:35
↓ 6 callers
Method
AdjustLocalVariables
(n int)
code.go:148
↓ 6 callers
Function
ArgumentError
ArgumentError raises an error with a standard message that includes extraMessage as a comment. This function never returns. It is an idiom to use it
auxiliary.go:118
↓ 6 callers
Method
CreateTable
CreateTable creates a new empty table and pushes it onto the stack. arrayCount is a hint for how many elements the table will have as a sequence; reco
lua.go:1039
↓ 6 callers
Function
Info
Info gets information about a specific function or function invocation. To get information about a function invocation, the parameter where must be a
debug.go:313
↓ 6 callers
Method
IsString
IsString verifies that the value at index is a string, or a number (which is always convertible to a string). http://www.lua.org/manual/5.2/manual.ht
lua.go:692
↓ 6 callers
Function
LengthEx
(l *State, index int)
auxiliary.go:548
↓ 6 callers
Method
Load
Load loads a Lua chunk, without running it. If there are no errors, it pushes the compiled chunk as a Lua function on top of the stack. Otherwise, it
lua.go:425
↓ 6 callers
Method
SetGlobal
SetGlobal pops a value from the stack and sets it as the new value of global name. http://www.lua.org/manual/5.2/manual.html#lua_setglobal
lua.go:1082
↓ 6 callers
Function
TypeNameOf
(l *State, index int)
auxiliary.go:379
↓ 6 callers
Method
ax
()
instructions.go:155
↓ 6 callers
Method
bx
()
instructions.go:154
↓ 6 callers
Method
checkLimit
(val, limit int, what string)
parser.go:30
↓ 6 callers
Function
field
(l *State, key string, def int)
os.go:11
↓ 6 callers
Method
hook
(event, line int)
stack.go:419
↓ 6 callers
Method
isCallStatus
(flag callStatus)
stack.go:142
↓ 6 callers
Function
isDecimal
(c rune)
scanner.go:85
↓ 6 callers
Function
isNewLine
(c rune)
scanner.go:84
↓ 6 callers
Method
setA
(arg int)
instructions.go:158
↓ 6 callers
Method
tagMethodByObject
(o value, event tm)
tag_methods.go:70
↓ 6 callers
Method
throw
(errorCode error)
stack.go:388
↓ 6 callers
Method
typeError
(v value, operation string)
debug.go:54
↓ 6 callers
Method
upValueCount
()
stack.go:22
↓ 5 callers
Method
AbsIndex
AbsIndex converts the acceptable index index to an absolute index (that is, one that does not depend on the stack top). http://www.lua.org/manual/5.2
lua.go:541
↓ 5 callers
Method
FixLine
(line int)
code.go:959
↓ 5 callers
Method
Insert
Insert moves the top element into the given valid index, shifting up the elements above this index to open space. This function cannot be called with
lua.go:591
↓ 5 callers
Method
Label
()
code.go:411
↓ 5 callers
Method
LocalVariable
(i int)
code.go:143
↓ 5 callers
Method
PushFString
PushFString pushes onto the stack a formatted string and returns that string. It is similar to fmt.Sprintf, but has some differences: the conversion
lua.go:899
↓ 5 callers
Method
SetMetaTable
SetMetaTable pops a table from the stack and sets it as the new metatable for the value at index. http://www.lua.org/manual/5.2/manual.html#lua_setme
lua.go:1150
↓ 5 callers
Function
SubTable
(l *State, index int, name string)
auxiliary.go:421
↓ 5 callers
Method
addConstant
(k, v value)
code.go:530
↓ 5 callers
Method
assert
(cond bool)
scanner.go:80
↓ 5 callers
Function
bMode
(m opCode)
instructions.go:222
↓ 5 callers
Function
chunkID
(source string)
debug.go:20
↓ 5 callers
Function
expectDeepEqual
(t *testing.T, x, y interface{}, m string)
parser_test.go:94
↓ 5 callers
Function
expectErrorFromUndump
(expected error, data interface{}, t *testing.T)
undump_test.go:91
↓ 5 callers
Method
expressionList
()
parser.go:53
↓ 5 callers
Method
fastTagMethod
(table *table, event tm)
tables.go:32
↓ 5 callers
Method
hasJumps
()
code.go:295
↓ 5 callers
Method
incrementLineNumber
()
scanner.go:112
↓ 5 callers
Function
newTable
()
tables.go:15
↓ 5 callers
Method
preCall
(function int, resultCount int)
stack.go:268
↓ 5 callers
Method
prototype
(ci *callInfo)
debug.go:13
↓ 5 callers
Method
putAtInt
(k int, v value)
tables.go:89
↓ 5 callers
Method
readByte
()
undump.go:52
↓ 5 callers
Function
relativePosition
(pos, length int)
string.go:11
↓ 5 callers
Method
setB
(arg int)
instructions.go:159
↓ 5 callers
Method
statementList
()
parser.go:296
↓ 5 callers
Function
tagError
(l *State, argCount int, tag Type)
auxiliary.go:180
↓ 5 callers
Function
toStream
(l *State)
io.go:19
↓ 5 callers
Method
undump
(in io.Reader, name string)
undump.go:306
↓ 5 callers
Method
valueToType
(v value)
lua.go:633
↓ 4 callers
Method
AdjustAssignment
(variableCount, expressionCount int, e exprDesc)
code.go:1000
↓ 4 callers
Method
CheckStack
CheckStack ensures that there are at least size free stack slots in the stack. This call will not panic(), unlike the other Check*() functions. http:
lua.go:615
↓ 4 callers
Method
EncodeString
(s string)
code.go:351
↓ 4 callers
Method
IsNone
IsNone verifies that the value at index is not valid. http://www.lua.org/manual/5.2/manual.html#lua_isnone
lua.go:1521
↓ 4 callers
Function
MetaField
MetaField pushes onto the stack the field event from the metatable of the object at index. If the object does not have a metatable, or if the metatabl
auxiliary.go:82
↓ 4 callers
Method
MetaTable
MetaTable pushes onto the stack the metatable of the value at index. If the value at index does not have a metatable, the function returns false and
lua.go:1048
↓ 4 callers
Method
PatchClose
(list, level int)
code.go:498
↓ 4 callers
Method
PatchList
(list, target int)
code.go:489
↓ 4 callers
Method
PushGlobalTable
PushGlobalTable pushes the global environment onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushglobaltable
lua.go:1531
↓ 4 callers
Method
PushGoClosure
PushGoClosure pushes a new Go closure onto the stack. When a Go function is created, it is possible to associate some values with it, thus creating a
lua.go:959
↓ 4 callers
Method
PushUserData
PushUserData is similar to PushLightUserData, but pushes a full userdata onto the stack.
lua.go:1463
↓ 4 callers
Method
RawGet
RawGet is similar to GetTable, but does a raw access (without metamethods). http://www.lua.org/manual/5.2/manual.html#lua_rawget
lua.go:1005
↓ 4 callers
Function
SetFunctions
(l *State, functions []RegistryFunction, upValueCount uint8)
auxiliary.go:381
↓ 4 callers
Method
ToInteger
ToInteger converts the Lua value at index into a signed integer. The Lua value must be a number, or a string convertible to a number. If the number i
lua.go:769
↓ 4 callers
Method
ToNumber
ToNumber converts the Lua value at index to the Go type for a Lua number (float64). The Lua value must be a number or a string convertible to a number
lua.go:1402
↓ 4 callers
Method
addOrInsertHash
(k, v value)
tables.go:82
↓ 4 callers
Method
block
()
parser.go:442
↓ 4 callers
Method
blockFollow
(withUntil bool)
parser.go:286
↓ 4 callers
Function
cMode
(m opCode)
instructions.go:223
↓ 4 callers
Method
callTagMethod
(f, p1, p2 value)
tag_methods.go:86
↓ 4 callers
Method
concat
(total int)
vm.go:172
↓ 4 callers
Method
encodeABx
(op opCode, a, bx int)
code.go:328
↓ 4 callers
Method
encodeArithmetic
(op opCode, e1, e2 exprDesc, line int)
code.go:863
↓ 4 callers
Method
encodeAsBx
(op opCode, a, sbx int)
code.go:335
↓ 4 callers
Function
endianness
()
undump.go:283
↓ 4 callers
Method
equalObjects
(t1, t2 value)
vm.go:99
↓ 4 callers
Method
hasMultipleReturns
()
code.go:298
↓ 4 callers
Function
intFromFloat8
(x float8)
types.go:220
↓ 4 callers
Function
isConstant
(x int)
instructions.go:126
← previous
next →
101–200 of 673, ranked by callers