{"id":20084954,"url":"https://github.com/tranphuquy19/go-embed","last_synced_at":"2026-05-11T11:36:03.049Z","repository":{"id":102180994,"uuid":"564705103","full_name":"tranphuquy19/go-embed","owner":"tranphuquy19","description":null,"archived":false,"fork":false,"pushed_at":"2022-11-11T15:17:56.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-02T14:24:47.751Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","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/tranphuquy19.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":"2022-11-11T09:55:30.000Z","updated_at":"2022-11-11T10:03:12.000Z","dependencies_parsed_at":null,"dependency_job_id":"3c759b5d-3a2d-4ac4-b8b6-6a580e22b83c","html_url":"https://github.com/tranphuquy19/go-embed","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tranphuquy19/go-embed","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tranphuquy19%2Fgo-embed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tranphuquy19%2Fgo-embed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tranphuquy19%2Fgo-embed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tranphuquy19%2Fgo-embed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tranphuquy19","download_url":"https://codeload.github.com/tranphuquy19/go-embed/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tranphuquy19%2Fgo-embed/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32893609,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-10T13:40:02.631Z","status":"online","status_checked_at":"2026-05-11T02:00:05.975Z","response_time":120,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-13T15:54:09.062Z","updated_at":"2026-05-11T11:36:03.029Z","avatar_url":"https://github.com/tranphuquy19.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Go embed\n\nEmbed executable file and execute it in memory.\n\n**Example**: https://replit.com/@tranphuquy19/go-embed#readme.md\n\n## Usage\n\n1. Build hello-world binary file to test.\n\n```bash\ngcc -o hello-world hello-world.cpp\n```\n\n2. Embed hello-world binary file to go file. And build it.\n\n```bash\nexport CGO_ENABLED=0 # run this command only once\ngo build .\n./go-embed\n```\n\n3. Change executable file name to test.\n\n- Update go directive `//go:embed hello-world` to your executable file name (at line 10 in main.go), and build it again.\n\n4. Multi platform support\n\n- Check supported platform list by `go tool dist list`. Copy them to `platforms.txt` file.\n- Then run \n\n```bash\nchmod +x build.sh # run this command only once\n./build.sh\n```\n\n- Check `build` folder, you will see executable file for each platform.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftranphuquy19%2Fgo-embed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftranphuquy19%2Fgo-embed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftranphuquy19%2Fgo-embed/lists"}