{"id":29116575,"url":"https://github.com/go2hx/go2hx","last_synced_at":"2025-06-29T11:14:00.167Z","repository":{"id":37759714,"uuid":"309362511","full_name":"go2hx/go2hx","owner":"go2hx","description":"Import Go libraries in your Haxe projects Go -\u003e Haxe source-to-source compiler","archived":false,"fork":false,"pushed_at":"2025-06-25T16:17:25.000Z","size":157267,"stargazers_count":136,"open_issues_count":29,"forks_count":14,"subscribers_count":8,"default_branch":"master","last_synced_at":"2025-06-25T16:30:46.103Z","etag":null,"topics":["compile","compiler","go","golang","haxe","haxe-transpiler","tardisgo","transpiler","traspile"],"latest_commit_sha":null,"homepage":"https://go2hx.github.io/","language":"Haxe","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/go2hx.png","metadata":{"files":{"readme":"README.MD","changelog":null,"contributing":"CONTRIBUTING.MD","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,"zenodo":null}},"created_at":"2020-11-02T12:26:46.000Z","updated_at":"2025-06-25T16:17:29.000Z","dependencies_parsed_at":"2023-12-30T16:32:12.801Z","dependency_job_id":"d576ecc0-c4c1-4e2f-be6f-eb4c33d1e63a","html_url":"https://github.com/go2hx/go2hx","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/go2hx/go2hx","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go2hx%2Fgo2hx","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go2hx%2Fgo2hx/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go2hx%2Fgo2hx/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go2hx%2Fgo2hx/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/go2hx","download_url":"https://codeload.github.com/go2hx/go2hx/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/go2hx%2Fgo2hx/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262581513,"owners_count":23331925,"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":["compile","compiler","go","golang","haxe","haxe-transpiler","tardisgo","transpiler","traspile"],"created_at":"2025-06-29T11:13:42.081Z","updated_at":"2025-06-29T11:14:00.131Z","avatar_url":"https://github.com/go2hx.png","language":"Haxe","funding_links":[],"categories":["Go Compilers","Golang","Go 编译器"],"sub_categories":["Search and Analytic Databases","检索及分析资料库"],"readme":"\u003cdiv align=\"center\"\u003e\n\nImport Go libraries into your Haxe projects.\n\n\u003cimg src=\"extra/images/logo.svg\" width=\"300\"/\u003e\n\n[![build](https://github.com/go2hx/go2hx/actions/workflows/main.yml/badge.svg)](https://github.com/go2hx/go2hx/actions/workflows/main.yml) [![Discord](https://img.shields.io/discord/162395145352904705.svg?logo=discord)](https://discord.gg/jgPcqC7DY2)\n\n\u003e Spiritual successor to [Elliott Stoneham's compiler](#credits)\n\n\u003c/div\u003e\n\n## Installation\n\n\u003e [!WARNING]  \n\u003e Early alpha version, not able to compile most Go code correctly\n\n\n* [Download Haxe 4.3.2+](https://build.haxe.org/builds/haxe/)\n* Hxcpp haxe library is required for the compiler\n\n\n```sh\nhaxelib git hxcpp https://github.com/haxefoundation/hxcpp\n```\n\n## Getting started\n\nCompile a Go library (example: unicode) to Haxe with the following command line:\n```sh\nhaxelib run go2hx unicode\n```\n\nNow include the outputted code into your project hxml or equivalent:\n```hxml\n-cp golibs\n--macro Go2hxMacro.init()\n```\n\nYou can now import the Go library and use it in your Haxe project (example: unicode):\n```haxe\nimport stdgo.unicode.Unicode;\nfunction main() {\n    trace(Unicode.isGraphic('g'.code));\n}\n```\n\nSee the [website](https://go2hx.github.io) for more details.\n\n\n### Latest update on Youtube\n[![IMAGE ALT TEXT HERE](https://img.youtube.com/vi/qVaynJJ941M/0.jpg)](https://www.youtube.com/watch?v=qVaynJJ941M)\n\n# Project status\n\nThe project is currently in a early alpha state. Not able to compile most Go code. Most Go language features are extensively tested and will likely work in isolation, that are not explicated excluded such as generics and unsafe.\n\n## Setup from source\n\nClone the repo using recursive, as the project relies on git submodules.\n```sh\ngit clone --recursive https://github.com/go2hx/go2hx\n```\n\n```sh\ncd go2hx\nhaxelib dev go2hx .\nhaxelib run go2hx build\n```\n\nIn case you forgot to add ``--recursive``:\n```sh\ngit submodule update --init --recursive\n```\n\n## Join in on the fun!\n\n[Haxe #go2hx discord channel](https://discord.gg/jgPcqC7DY2).\nRead the [contributing guide](./CONTRIBUTING.MD) for insights and information on adding code into the project.\n\n# Credits\n\nA spiritual successor to Tardisgo written by [Elliott Stoneham](https://github.com/elliott5),\nA maintainer, mentor, and code contributor of this project, go2hx would not exist without him.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo2hx%2Fgo2hx","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgo2hx%2Fgo2hx","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgo2hx%2Fgo2hx/lists"}