{"id":25349878,"url":"https://github.com/yankeguo-deprecated/binfs-alt","last_synced_at":"2025-10-29T19:31:06.968Z","repository":{"id":64303298,"uuid":"195375244","full_name":"yankeguo-deprecated/binfs-alt","owner":"yankeguo-deprecated","description":"embedded filesystem for go binary","archived":false,"fork":false,"pushed_at":"2019-07-17T08:40:04.000Z","size":33,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-06-20T15:10:02.693Z","etag":null,"topics":["echo","echo-middleware","embedded","embedded-files","filesystem","go","golang","golang-library"],"latest_commit_sha":null,"homepage":null,"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/yankeguo-deprecated.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":"2019-07-05T08:53:59.000Z","updated_at":"2024-06-20T15:10:02.693Z","dependencies_parsed_at":"2022-12-06T11:30:36.369Z","dependency_job_id":null,"html_url":"https://github.com/yankeguo-deprecated/binfs-alt","commit_stats":null,"previous_names":["go-guoyk/binfs","yankeguo-deprecated/binfs-alt","guoyk-deprecated/binfs-alt"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yankeguo-deprecated%2Fbinfs-alt","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yankeguo-deprecated%2Fbinfs-alt/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yankeguo-deprecated%2Fbinfs-alt/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yankeguo-deprecated%2Fbinfs-alt/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yankeguo-deprecated","download_url":"https://codeload.github.com/yankeguo-deprecated/binfs-alt/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238878932,"owners_count":19545855,"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":["echo","echo-middleware","embedded","embedded-files","filesystem","go","golang","golang-library"],"created_at":"2025-02-14T16:58:28.885Z","updated_at":"2025-10-29T19:31:01.356Z","avatar_url":"https://github.com/yankeguo-deprecated.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# binfs\n\n[![Build Status](https://travis-ci.org/go-guoyk/binfs.svg?branch=master)](https://travis-ci.org/go-guoyk/binfs)\n[![Go Report Card](https://goreportcard.com/badge/go.guoyk.net/binfs)](https://goreportcard.com/report/go.guoyk.net/binfs)\n![GitHub](https://img.shields.io/github/license/go-guoyk/binfs.svg)\n\nembedded filesystem for go binary\n\n## Usage\n\n### Get binfs\n\n```bash\ngo get go.guoyk.net/binfs/cmd/binfs # the cli tool\ngo get go.guoyk.net/binfs           # the runtime package\n```\n\n### Generate\n\n```bash\nbinfs -pkg binfs_test public view \u003e binfs.gen.go\n```\n\nThis command read the content of directory `public` and `view`, output a `binfs.gen.go` file\n\n**This command only accept directories**\n\nThe argument `pkg` specifies package name in `binfs.gen.go` file, default is `main`\n\n## Retrive\n\nAs long as binfs.gen.go is compiled with your source code, you can extract file with\n\n```go\nbinfs.Open(\"/public/robots.txt\")\n```\n\nYou can also use `binfs.FileSystem()` or `binfs.Find(\"subdir\").FileSystem()` to get a implementation of `http.FileSystem`\n\n## Integrate with `Echo`\n\n```go\nimport go.guoyk.net/binfs/binfsecho\n\ne := echo.New()\ne.Use(binfsecho.Static(\"public\"))\n```\n\n## Credits\n\nGuo Y.K., MIT License\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyankeguo-deprecated%2Fbinfs-alt","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyankeguo-deprecated%2Fbinfs-alt","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyankeguo-deprecated%2Fbinfs-alt/lists"}