[go-nuts] Re: Is it possible to bundle LuaJIT binary together with Go executable?

2016-11-09 Thread amenzhinsky
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

[go-nuts] Re: Is it possible to bundle LuaJIT binary together with Go executable?

2016-11-08 Thread Jianfei Wang
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

[go-nuts] Re: Is it possible to bundle LuaJIT binary together with Go executable?

2016-11-08 Thread omarshariffdontlikeit
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

[go-nuts] Re: Is it possible to bundle LuaJIT binary together with Go executable?

2016-11-07 Thread andrew_chambers
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