PushString pushes a string onto the stack. http://www.lua.org/manual/5.2/manual.html#lua_pushstring
(s string)
| 884 | // |
| 885 | // http://www.lua.org/manual/5.2/manual.html#lua_pushstring |
| 886 | func (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 |