Idea: being able to call Go's ssh lib. from lua.
Status: Right it can't do much just calls a Sum
function.
# creates the header file and .so
$ go build -buildmode=c-shared -o main.so main.go
# You'll have to edit header file see note.
# Run it with luajit
$ luajit hello_ffi.lua
4LL
Header file it generates won't work out of the box with lua-ffi.
- remove all ifdefs
- replace
__SIZE_TYPE__
withsize_t