aarzilli / golua

Go bindings for Lua C API - in progress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Help] Getting a return value from lua

Beanzilla opened this issue · comments

I have a lua script like below:

return {
    answer = 42,
    ok = true
}

I'd like to retrieve the table that the script has returned, I've seen the other issue #101, and I don't quite understand how to obtain the return value.

Perhaps I need an example of how to access it.

Just a short example will do, as once I see it I am sure I'll be able to work my way to understanding how to do it for further cases.