{"id":24650878,"url":"https://github.com/ggdream/bindgo","last_synced_at":"2025-06-28T06:36:28.725Z","repository":{"id":52114229,"uuid":"415910694","full_name":"ggdream/bindgo","owner":"ggdream","description":"Use Dart to call Shell, complete the work of compiling Golang CGO code into a so, dll, a, WASM, and etc. And place it in the corresponding source file directory of each Flutter platform.","archived":false,"fork":false,"pushed_at":"2021-10-12T07:35:50.000Z","size":222,"stargazers_count":38,"open_issues_count":1,"forks_count":2,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-04-01T07:51:32.300Z","etag":null,"topics":["android","cgo","cross-platform","dartlang","dynamic-link-library","ffi","flutter","fuchsia-os","golang","ios","linux","macos","web","windows"],"latest_commit_sha":null,"homepage":"","language":"Dart","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/ggdream.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-10-11T12:10:52.000Z","updated_at":"2025-02-21T18:24:57.000Z","dependencies_parsed_at":"2022-08-23T21:50:30.126Z","dependency_job_id":null,"html_url":"https://github.com/ggdream/bindgo","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/ggdream/bindgo","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggdream%2Fbindgo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggdream%2Fbindgo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggdream%2Fbindgo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggdream%2Fbindgo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ggdream","download_url":"https://codeload.github.com/ggdream/bindgo/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ggdream%2Fbindgo/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262388481,"owners_count":23303321,"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":["android","cgo","cross-platform","dartlang","dynamic-link-library","ffi","flutter","fuchsia-os","golang","ios","linux","macos","web","windows"],"created_at":"2025-01-25T18:16:53.924Z","updated_at":"2025-06-28T06:36:28.709Z","avatar_url":"https://github.com/ggdream.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# BindGo\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://raw.githubusercontent.com/ggdream/bindgo/main/doc/logo.png\" alt=\"😭\" /\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://space.bilibili.com/264346349\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/bilibili-mocaraka-blueviolet\" alt=\"😭\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/ggdream/bindgo\"\u003e\n        \u003cimg src=\"https://img.shields.io/badge/GitHub-mocaraka-ff69b4\" alt=\"😭\" /\u003e\n    \u003c/a\u003e\n\u003c/div\u003e\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Platforms-Android,iOS,Windows,Linux,MacOS,Web-009688\" alt=\"😭\" /\u003e\n    \u003cimg src=\"https://img.shields.io/badge/Mode-Debug,Profile,Release-3949ab\" alt=\"😭\" /\u003e\n\u003c/div\u003e\nUse Dart to call Shell, complete the work of compiling Golang CGO code into a so, dll, a, WASM, and etc. And place it in the corresponding source file directory of each Flutter platform.\n\u003cbr/\u003e\n\u003cbr/\u003e\n\u003cbr/\u003e\n\n## Getting started\n\nFirst, add `bindgo` as a dev dependency in your pubspec.yaml file. It belongs in dev_dependencies because it is a command line tool.\n\n```yaml\ndev_dependencies:\n  bindgo: any\n```\n\n## Usage\n\n1. Adding your config to field `bindgo` in pubspec.yaml\n\ne.g. :\n\n```yaml\nbindgo:\n  name: test # Dynamic library output name\n  main: ./test # The directory where the main package of golang code is located\n  platforms:\n    windows:\n      arch:\n        - 'amd64'\n    android:\n      arch:\n        - 'arm64'\n      cc: '${NDK}/toolchains/llvm/prebuilt/windows-x86_64/bin/aarch64-linux-android27-clang.cmd'\n```\n\n2. Run the following command in the terminal\n\n```bash\ndart run bindgo\n```\n\nor\n\n```bash\nflutter pub run bindgo:run\n```\n\n## Additional information\n\nView the operating systems and architectures supported by the current version of golang:\n\n```bash\ngo tool dist list\n```\n\ne.g. :\n\n```bash\n# golang v1.17.2\n\n...\nandroid/386\nandroid/amd64\nandroid/arm\nandroid/arm64\n---\ndarwin/amd64\ndarwin/arm64\n...\nios/amd64\nios/arm64\n---\njs/wasm\n---\nlinux/386\nlinux/amd64\nlinux/arm\nlinux/arm64\n...\nwindows/386\nwindows/amd64\nwindows/arm\nwindows/arm64\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggdream%2Fbindgo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fggdream%2Fbindgo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fggdream%2Fbindgo/lists"}