1 Star 0 Fork 0

恐咖兵糖/lua-libs-demo

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
testgo.lua 318 Bytes
一键复制 编辑 原始数据 按行查看 历史
恐咖兵糖 提交于 2年前 . init
-- Load the shared library
print(package.loadlib("./golib.so", "Hello"))
local hi = package.loadlib("./golib.so", "Hello")
local sayHello = package.loadlib("./golib.so", "SayHello")
if hi then
local result = hi()
print("Result:", result)
else
print("Failed to load the shared library")
end
sayHello()
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/kkbt/lua-libs-demo.git
git@gitee.com:kkbt/lua-libs-demo.git
kkbt
lua-libs-demo
lua-libs-demo
master

搜索帮助