package
module
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Dec 22, 2025
License: Apache-2.0
Opens a new window with license information.
Imports: 16
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
glua
简介
glua 基于 gopher-lua 二次开发,在原版基础上新增了许多模块
安装
go get github.com/r0kyi/glua
使用
直接安装二进制版本
go install github.com/r0kyi/glua/cmd/glua@latest
glua <lua file>
在 go 代码中使用
package main
import (
"os"
"github.com/r0kyi/glua"
)
func main() {
L := glua.NewState()
defer L.Close()
args := os.Args
if len(args) < 2 {
println("usage: glua <lua file>")
return
}
if err := L.DoFile(args[1]); err != nil {
println(err.Error())
}
}
模块列表
特别鸣谢
Documentation
¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.