mirror of
				https://github.com/sammy-ette/Hilbish
				synced 2025-08-10 02:52:03 +00:00 
			
		
		
		
	wip(feat): bait package for hooks
This commit is contained in:
		
							parent
							
								
									c5fa238156
								
							
						
					
					
						commit
						aea035fe41
					
				
							
								
								
									
										22
									
								
								golibs/bait/bait.go
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								golibs/bait/bait.go
									
									
									
									
									
										Normal file
									
								
							@ -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
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user