PS:gopher-lua 调用全局和成员函数的区分
GetGlobal 和 GetField 应用方法
1,lua脚本
![](https://img.haomeiwen.com/i11546340/d1ef745af05f777b.png)
![](https://img.haomeiwen.com/i11546340/665e3e3f224699a5.png)
2,go 调用 lua函数在全局和成员函数上的区分
![](https://img.haomeiwen.com/i11546340/70c75b283978c2fd.png)
3,可以从此处得到测试demo
https://github.com/cn0512/GoServerFrame
PS:gopher-lua 调用全局和成员函数的区分
GetGlobal 和 GetField 应用方法
1,lua脚本
2,go 调用 lua函数在全局和成员函数上的区分
3,可以从此处得到测试demo
https://github.com/cn0512/GoServerFrame
本文标题:Gopher-Lua API 趟坑(一)
本文链接:https://www.haomeiwen.com/subject/rqzkjftx.html
网友评论