diff --git a/golibs/bait/bait.go b/golibs/bait/bait.go new file mode 100644 index 0000000..a1a2615 --- /dev/null +++ b/golibs/bait/bait.go @@ -0,0 +1,22 @@ +package bait + +import ( + "github.com/chuckpreslar/emission" + "github.com/yuin/gopher-lua" +) + +type Bait struct{} + +func New() Bait { + return Bait{} +} + +func (b *Bait) Loader(L *lua.LState) int { + var exports = map[string]lua.LGFunction{} + mod := L.SetFuncs(L.NewTable(), exports) + + L.Push(mod) + + return 1 +} +