Replies: 1 comment
-
You probably wonder, why the stack overflow question differs. That is, because I tried to find some working way to have dynamic data inside the lua script. My question here is what I personally would prefer, if I had understood all the pieces ;-) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
is it possible to write Go code that would expect a lua function with a table as argument? I give an example:
In Go I would have some multi-threaded enviornment (HTTP server with client requests) that can call this script and the script would do some action.
So far I payed around with the Loader and the pool-stack, but I am totally stuck. I even opened a question on StackOverflow (https://stackoverflow.com/questions/77322628/how-can-i-prevent-dofile-calls-in-an-threaded-environment-with-gopher-lua?noredirect=1#comment136315117_77322628), but I only could focus on the DoFile-problem and not at the main conceptional issue at all.
Any help would really be great! And of course many thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions