{"id":75127,"library":"josharian-txtarfs","title":"txtarfs","description":"Package txtarfs converts a txtar archive into an fs.FS filesystem.","status":"active","version":"0.0.0-20210615231727-b36c7445259b","language":"go","source_language":null,"source_url":"https://github.com/josharian/txtarfs","tags":["txtar","filesystem","testing","archive"],"install":[{"cmd":"go get github.com/josharian/txtarfs","lang":"bash","label":"Install github.com/josharian/txtarfs"}],"dependencies":[],"imports":[{"symbol":"txtarfs","correct":"github.com/josharian/txtarfs"}],"quickstart":{"code":"package main\n\nimport (\n\t\"fmt\"\n\t\"os\"\n\t\"github.com/josharian/txtarfs\"\n\t\"golang.org/x/tools/txtar\"\n)\n\nfunc main() {\n\tarchive := txtar.Parse([]byte(\"-- file.txt --\\nhello\"))\n\tfsys := txtarfs.AsFS(archive)\n\tdata, _ := fsys.Open(\"file.txt\")\n\tbuf := make([]byte, 10)\n\tdata.Read(buf)\n\tfmt.Println(string(buf))\n}","lang":"go","description":"Creates an fs.FS from a txtar archive"},"warnings":[],"env_vars":null,"search_vec":"'archiv':7,15 'convert':4 'filesystem':11,13 'fs.fs':10 'packag':2 'test':14 'txtar':6,12 'txtarf':1,3","created_at":"2026-06-17T19:12:51.500393+00:00","updated_at":"2026-06-17T19:12:51.500393+00:00","problems":[],"ecosystem":"go","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://github.com/josharian/txtarfs","github":"https://github.com/josharian/txtarfs","docs":"https://pkg.go.dev/github.com/josharian/txtarfs#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}