{"id":23682927,"url":"https://github.com/johejo/ghfs","last_synced_at":"2025-09-02T11:31:22.574Z","repository":{"id":38077826,"uuid":"332100868","full_name":"johejo/ghfs","owner":"johejo","description":"Package ghfs wraps the github v3 rest api with io/fs.","archived":false,"fork":false,"pushed_at":"2022-08-23T02:06:52.000Z","size":64,"stargazers_count":9,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-06-19T05:56:52.352Z","etag":null,"topics":["filesystem","fs","github","github-api-v3","go","golang","io","iofs"],"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/johejo.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-01-23T01:15:34.000Z","updated_at":"2024-01-27T10:30:40.000Z","dependencies_parsed_at":"2022-08-31T05:10:20.481Z","dependency_job_id":null,"html_url":"https://github.com/johejo/ghfs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johejo%2Fghfs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johejo%2Fghfs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johejo%2Fghfs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johejo%2Fghfs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johejo","download_url":"https://codeload.github.com/johejo/ghfs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":231780340,"owners_count":18425542,"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":["filesystem","fs","github","github-api-v3","go","golang","io","iofs"],"created_at":"2024-12-29T19:59:30.956Z","updated_at":"2024-12-29T19:59:31.429Z","avatar_url":"https://github.com/johejo.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ghfs\n\n[![ci](https://github.com/johejo/ghfs/workflows/ci/badge.svg?branch=main)](https://github.com/johejo/ghfs/actions?query=workflow%3Aci)\n[![Go Reference](https://pkg.go.dev/badge/github.com/johejo/ghfs.svg)](https://pkg.go.dev/github.com/johejo/ghfs)\n[![codecov](https://codecov.io/gh/johejo/ghfs/branch/main/graph/badge.svg)](https://codecov.io/gh/johejo/ghfs)\n[![Go Report Card](https://goreportcard.com/badge/github.com/johejo/ghfs)](https://goreportcard.com/report/github.com/johejo/ghfs)\n\nPackage ghfs wraps the github v3 rest api with io/fs.\nFiles in the repository can be read in the same way as local files.\n\n## Example\n\n```go\npackage ghfs_test\n\nimport (\n\t\"context\"\n\t\"io\"\n\t\"os\"\n\n\t\"github.com/johejo/ghfs\"\n\t\"golang.org/x/oauth2\"\n)\n\nfunc Example() {\n\tctx := context.Background()\n\tts := oauth2.StaticTokenSource(\u0026oauth2.Token{AccessToken: os.Getenv(\"GITHUB_TOKEN\")})\n\tc := oauth2.NewClient(ctx, ts)\n\n\tfsys := ghfs.New(c, \"golang\", \"go\")\n\tf, err := fsys.Open(\"README.md\")\n\tif err != nil {\n\t\tpanic(err)\n\t}\n\tio.Copy(os.Stdout, f)\n}\n```\n\n## License\n\nMIT\n\n## Author\n\nMitsuo Heijo\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohejo%2Fghfs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohejo%2Fghfs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohejo%2Fghfs/lists"}