mirror of https://github.com/Hilbis/Hilbish
23 lines
304 B
Go
23 lines
304 B
Go
|
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
|
||
|
}
|
||
|
|