Пример #1
0
func init() {
	rand.Seed(time.Now().UTC().UnixNano())
	runtime.GOMAXPROCS(runtime.NumCPU())

	//	Lua = lua.NewState()
	Lua = gutil.LuaInit()
}
Пример #2
0
func init() {
	runtime.GOMAXPROCS(runtime.NumCPU())
	Lua = gutil.LuaInit()

	if Lua == nil {
		log.Fatal("main: init: Can't make lua state")
	}

}