{"id":13709824,"url":"https://github.com/hugelgupf/p9","last_synced_at":"2025-03-15T14:30:24.757Z","repository":{"id":39847587,"uuid":"199538644","full_name":"hugelgupf/p9","owner":"hugelgupf","description":"Idiomatic Go 9P2000.L client and server, extracted from gVisor for general use","archived":false,"fork":false,"pushed_at":"2024-04-19T12:48:45.000Z","size":1867,"stargazers_count":95,"open_issues_count":10,"forks_count":21,"subscribers_count":9,"default_branch":"main","last_synced_at":"2025-02-27T02:23:53.997Z","etag":null,"topics":["9p","9p2000","fileserver","go","golang","hacktoberfest"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/hugelgupf.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,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2019-07-29T23:14:13.000Z","updated_at":"2025-01-14T05:35:37.000Z","dependencies_parsed_at":"2024-01-18T04:37:23.289Z","dependency_job_id":"94f073a2-2569-48b1-8fe1-86da47e8489e","html_url":"https://github.com/hugelgupf/p9","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugelgupf%2Fp9","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugelgupf%2Fp9/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugelgupf%2Fp9/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hugelgupf%2Fp9/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hugelgupf","download_url":"https://codeload.github.com/hugelgupf/p9/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243742480,"owners_count":20340658,"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":["9p","9p2000","fileserver","go","golang","hacktoberfest"],"created_at":"2024-08-02T23:00:46.708Z","updated_at":"2025-03-15T14:30:24.160Z","avatar_url":"https://github.com/hugelgupf.png","language":"Go","funding_links":[],"categories":["Repositories"],"sub_categories":[],"readme":"## p9\n\n[![CircleCI](https://circleci.com/gh/hugelgupf/p9.svg?style=svg)](https://circleci.com/gh/hugelgupf/p9)\n[![Go Report Card](https://goreportcard.com/badge/github.com/hugelgupf/p9)](https://goreportcard.com/report/github.com/hugelgupf/p9)\n[![GoDoc](https://godoc.org/github.com/hugelgupf/p9?status.svg)](https://godoc.org/github.com/hugelgupf/p9)\n\np9 is a Golang 9P2000.L client and server originally written for gVisor. p9\nsupports Windows, BSD, and Linux on most Go-available architectures.\n\n### Server Example\n\nFor how to start a server given a `p9.Attacher` implementation, see\n[cmd/p9ufs](cmd/p9ufs/p9ufs.go).\n\nFor how to implement a `p9.Attacher` and `p9.File`, see as an example\n[staticfs](fsimpl/staticfs/staticfs.go), a simple static file system.\nBoilerplate templates for `p9.File` implementations are in\n[templatefs](fsimpl/templatefs/).\n\nA test suite for server-side `p9.Attacher` and `p9.File` implementations is\nbeing built at [fsimpl/test](fsimpl/test/filetest.go).\n\n### Client Example\n\n```go\nimport (\n    \"log\"\n    \"net\"\n\n    \"github.com/hugelgupf/p9/p9\"\n)\n\nfunc main() {\n  conn, err := net.Dial(\"tcp\", \"localhost:8000\")\n  if err != nil {\n    log.Fatal(err)\n  }\n\n  // conn can be any net.Conn.\n  client, err := p9.NewClient(conn)\n  if err != nil {\n    log.Fatal(err)\n  }\n\n  // root will be a p9.File and supports all those operations.\n  root, err := client.Attach(\"/\")\n  if err != nil {\n    log.Fatal(err)\n  }\n\n  // For example:\n  _, _, attrs, err := root.GetAttr(p9.AttrMaskAll)\n  if err != nil {\n    log.Fatal(err)\n  }\n\n  log.Printf(\"Attrs of /: %v\", attrs)\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugelgupf%2Fp9","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhugelgupf%2Fp9","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhugelgupf%2Fp9/lists"}