{"id":19634015,"url":"https://github.com/nullobsi/godeno","last_synced_at":"2025-04-28T07:31:06.317Z","repository":{"id":63633709,"uuid":"314458041","full_name":"nullobsi/GoDeno","owner":"nullobsi","description":"Go glue code for Deno.","archived":false,"fork":false,"pushed_at":"2023-12-23T22:32:45.000Z","size":61,"stargazers_count":13,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-05T07:33:09.392Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nullobsi.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2020-11-20T05:43:11.000Z","updated_at":"2024-07-18T11:07:58.000Z","dependencies_parsed_at":"2024-11-11T12:29:56.017Z","dependency_job_id":null,"html_url":"https://github.com/nullobsi/GoDeno","commit_stats":null,"previous_names":[],"tags_count":14,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullobsi%2FGoDeno","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullobsi%2FGoDeno/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullobsi%2FGoDeno/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nullobsi%2FGoDeno/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nullobsi","download_url":"https://codeload.github.com/nullobsi/GoDeno/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251271112,"owners_count":21562494,"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":[],"created_at":"2024-11-11T12:19:19.644Z","updated_at":"2025-04-28T07:31:05.798Z","avatar_url":"https://github.com/nullobsi.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GoDeno\nA simple port of Golang's JS/WASM glue code to Deno in TypeScript.\nCredit to the Go team for their amazing work on getting Go working in WASM!\n\nRequires `--unstable` flag. Permissions flags are also required for filesystem usage.\n\n## Usage\n1. Create a new `Go` class\n2. Create a new WASM instance with the `importObject` on the new `Go` object.\n3. Run `go.run(wasmInstance)` with your WASM instance.\n\nThe `go` instance has an exports object for any objects that Go exposed on the `js.Global()` object.\n\nExample Code:\n\n```go\npackage main\n\nimport \"syscall/js\"\n\nfunc main() {\n    js.Global().Set(\"export1\", \"Hello!\");\n    \u003c- make(chan bool)\n}\n```\n\n```ts\nimport Go from \"mod.ts\"\n\nlet go = new Go();\nlet wasm = await WebAssembly.instantiate(Deno.readFileSync(\"code.wasm\"), go.importObject);\nlet promise = go.run(wasm.instance);\n\nlet value = go.exports.export1;\nconsole.log(\"Go says: \" + value); //Go says: Hello!\n```\n\n### Go FS implementation\n- [x] fs.open      \n- [x] fs.close     \n- [x] fs.mkdir     \n- [x] fs.readdir   \n- [x] fs.stat      \n- [x] fs.lstat     \n- [x] fs.fstat\n- [x] fs.unlink     (Uses `Deno.remove()`)\n- [x] fs.rmdir     \n- [x] fs.chmod     \n- [x] fs.fchmod     (Not native API)\n- [x] fs.chown     \n- [x] fs.fchown     (Not native API)\n- [ ] fs.lchown     (Deno does not support lchown.)\n- [x] fs.utimes\n- [x] fs.rename    \n- [x] fs.truncate  \n- [x] fs.ftruncate \n- [x] fs.readlink  \n- [x] fs.link\n- [x] fs.symlink\n- [x] fs.fsync     \n- [x] fs.read\n- [x] fs.write\n\n### Go Process implementation\nAs of now, Deno does not have ways to get the GID or umask.\n- [x] process.getuid\n- [x] process.getgid\n- [ ] process.geteuid\n- [ ] process.getegid\n- [ ] process.getgroups\n- [x] process.pid\n- [x] process.ppid\n- [x] process.umask (Unstable API)\n- [x] process.cwd\n- [x] process.chdir\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullobsi%2Fgodeno","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnullobsi%2Fgodeno","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnullobsi%2Fgodeno/lists"}