MCPcopy Index your code
hub / github.com/Shopify/go-lua / PushString

Method PushString

lua.go:886–889  ·  view source on GitHub ↗

PushString pushes a string onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushstring

(s string)

Source from the content-addressed store, hash-verified

884//
885// http://www.lua.org/manual/5.2/manual.html#lua_pushstring
886func (l *State) PushString(s string) string { // TODO is it useful to return the argument?
887 l.apiPush(s)
888 return s
889}
890
891// PushFString pushes onto the stack a formatted string and returns that
892// string. It is similar to fmt.Sprintf, but has some differences: the

Callers 15

ExampleFunctionFunction · 0.80
upValueHelperFunction · 0.80
internalHookFunction · 0.80
debug.goFile · 0.80
finishProtectedCallFunction · 0.80
base.goFile · 0.80
BaseOpenFunction · 0.80
string.goFile · 0.80
StringOpenFunction · 0.80
table.goFile · 0.80
io.goFile · 0.80

Calls 1

apiPushMethod · 0.95

Tested by 2

ExampleFunctionFunction · 0.64