在go中使用lua示例, 基于gopher-lua!
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

13 lines
220 B

package luaInGo
import lua "github.com/yuin/gopher-lua"
const (
InitPoolSize = 128
NaxPoolSize = 512
)
//初始化lua LState连接池
var LuaStatePool = &lStatePool{
saved: make([]*lua.LState, 0, InitPoolSize),
}