{"id":19036126,"url":"https://github.com/tx7do/go-lua","last_synced_at":"2025-04-23T19:06:31.547Z","repository":{"id":112433631,"uuid":"532968491","full_name":"tx7do/go-lua","owner":"tx7do","description":null,"archived":false,"fork":false,"pushed_at":"2022-09-06T02:16:51.000Z","size":20,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-30T02:33:33.649Z","etag":null,"topics":["golang","lua"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tx7do.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-09-05T15:58:16.000Z","updated_at":"2024-12-20T04:07:20.000Z","dependencies_parsed_at":null,"dependency_job_id":"fb334f38-d0e1-4f22-a538-a5de7bb8ac0f","html_url":"https://github.com/tx7do/go-lua","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Fgo-lua","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Fgo-lua/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Fgo-lua/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tx7do%2Fgo-lua/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tx7do","download_url":"https://codeload.github.com/tx7do/go-lua/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249348729,"owners_count":21255312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","lua"],"created_at":"2024-11-08T21:53:29.417Z","updated_at":"2025-04-17T14:33:50.189Z","avatar_url":"https://github.com/tx7do.png","language":"Go","readme":"# go-lua\r\n\r\n基于[GopherLua](https://github.com/yuin/gopher-lua)封装的一个Lua脚本引擎。\r\n\r\nGopherLua是一个日本人使用纯Golang开发的Lua虚拟机，Lua的基本特性都实现得差不多了，也是够用了。\r\n\r\n## 基本交互\r\n\r\n### 变量\r\n\r\n变量有三种访问方式：\r\n\r\n- 单向只写 - 将宿主的变量注入；\r\n- 单向只读 - 读取脚本中的变量；\r\n- 双向可读可写 - 将宿主的变量注入，脚本可操作宿主的变量并且反馈到宿主。\r\n\r\n### 方法\r\n\r\n- 宿主调用脚本中的方法；\r\n- 脚本调用宿主中的方法。\r\n\r\n### 模块\r\n\r\n变量和方法都可以注册到全局，也可以注册到模块。模块是一个好的解决方案，以免全局栈上名字冲突。\r\n","funding_links":[],"categories":["Go"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftx7do%2Fgo-lua","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftx7do%2Fgo-lua","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftx7do%2Fgo-lua/lists"}