增加虚拟机close逻辑

This commit is contained in:
白茶清欢 2025-04-14 17:34:10 +08:00
parent 316e120490
commit f4b1cf5e59

9
vm.go
View File

@ -19,6 +19,15 @@ type VM struct {
luaVm *luaCompile.LState
}
// Close 关闭虚拟机
//
// Author : go_developer@163.com<白茶清欢>
//
// Date : 18:26 2024/11/14
func (v *VM) Close() {
v.luaVm.Close()
}
// Run 运行脚本
//
// Author : go_developer@163.com<白茶清欢>