{"id":48246253,"url":"https://github.com/fcjr/lazyexe","last_synced_at":"2026-04-04T20:37:45.804Z","repository":{"id":47031243,"uuid":"350337266","full_name":"fcjr/lazyexe","owner":"fcjr","description":"Lazily load embedded executables in go.","archived":false,"fork":false,"pushed_at":"2021-09-16T14:47:22.000Z","size":35,"stargazers_count":3,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-20T00:28:06.010Z","etag":null,"topics":["embed","executable","go","goembed","golang","lazy-loading"],"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/fcjr.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}},"created_at":"2021-03-22T12:36:33.000Z","updated_at":"2024-01-10T15:02:33.000Z","dependencies_parsed_at":"2022-09-26T20:11:08.812Z","dependency_job_id":null,"html_url":"https://github.com/fcjr/lazyexe","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/fcjr/lazyexe","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcjr%2Flazyexe","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcjr%2Flazyexe/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcjr%2Flazyexe/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcjr%2Flazyexe/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fcjr","download_url":"https://codeload.github.com/fcjr/lazyexe/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fcjr%2Flazyexe/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31413280,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-04T20:09:54.854Z","status":"ssl_error","status_checked_at":"2026-04-04T20:09:44.350Z","response_time":60,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["embed","executable","go","goembed","golang","lazy-loading"],"created_at":"2026-04-04T20:37:44.865Z","updated_at":"2026-04-04T20:37:45.789Z","avatar_url":"https://github.com/fcjr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LazyExe\n\nLazily write an executable to disk.  Useful for embedding executables via go's new `//go:embed` directive.\n\nA new LazyExe can be created by running `lazyexe.New(exeBytes)`. Don't call `Path()` until you need to run the embedded executable.\n\nThe executable is written out to your tmp folder and chmoded the first time the `Path()` is requested. Subsequent calls to `Path()`\nwill return the same executable.  When finished using the executable you are expected to call `Cleanup()` to ensure the temporary\nfile is removed from the system.\n\n## Example\n\nTry running `example/main.go` which embeds a [cosmopolitan libc](https://justine.lol/cosmopolitan/index.html) hello world, loads it, and runs it!\n\n```go\npackage main\n\nimport (\n\t_ \"embed\"\n\t\"fmt\"\n\t\"log\"\n\t\"os/exec\"\n\n\t\"github.com/fcjr/lazyexe\"\n)\n\n//go:embed hello.com\nvar helloworld []byte\n\nfunc main() {\n\texe := lazyexe.New(helloworld)\n\tdefer exe.Cleanup()\n\n\texePath, err := exe.Path()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\n\tout, err := exec.Command(exePath).CombinedOutput()\n\tif err != nil {\n\t\tlog.Fatal(err)\n\t}\n\tfmt.Print(string(out))\n}\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcjr%2Flazyexe","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffcjr%2Flazyexe","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffcjr%2Flazyexe/lists"}