You can bundle your binary as a byte slice (see go-bindata), then at
runtime save it in a temporary file and execute it.
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an em
You can try some LuaJIT bindings in Go,
like https://github.com/aarzilli/golua. This will link a static LuaJIT
build with your Go program so that you do not need the external binary.
However, since cgo is involved, you have dependencies on libc and all
LuaJIT dependencies then.
On Tuesday, Nov
Not sure if you are specifically tied to LuaJIT, but I do remember seeing a
native Go version of Lua recently, not sure if that can help.
Ah, here it is: https://github.com/Shopify/go-lua
On Tuesday, November 8, 2016 at 1:38:48 AM UTC, ChrisLu wrote:
>
> Hi,
>
> I am working on a project to star
There are a few ways to embed binary data inside a Go executable, mainly
using go generate to create a const byte slice. At runtime you could then
extract the binary, though this probably might make some anti virus
products mad at you.
On Tuesday, November 8, 2016 at 2:38:48 PM UTC+13, ChrisLu