Call Go function from Lua

@Mohammed

develop my game using Lua, but I faced some limitations and I had to use golang

I’m curious what limitations did you encounter where you need to mix in some Go code to the project.

Is It possible for Lua to trigger Go functions and vice versa.

It’s not possible to call into functions between the two languages; this would be very complex to provide support for as you can imagine.

You could have some of your logic in Lua and other parts in Go. We have lots of game teams who have most of their code in Lua with a small amount in Go where needed. The server will load it all at startup so you can execute the RPC irrespective of which language it was written in.