{"id":75892,"library":"josharian-mapfs","title":"MapFS","description":"In-memory filesystem backed by a map for testing.","status":"active","version":"0.0.0-20210615231426-4a35c0754cdc","language":"go","source_language":null,"source_url":"https://github.com/josharian/mapfs","tags":["filesystem","testing","mock"],"install":[{"cmd":"go get github.com/josharian/mapfs","lang":"bash","label":"Install github.com/josharian/mapfs"}],"dependencies":[],"imports":[{"symbol":"mapfs","correct":"github.com/josharian/mapfs"}],"quickstart":{"code":"package main\n\nimport (\n    \"github.com/josharian/mapfs\"\n    \"io/ioutil\"\n)\n\nfunc main() {\n    fs := mapfs.New(map[string]string{\"hello.txt\": \"Hello, World!\"})\n    data, _ := ioutil.ReadAll(fs.Open(\"hello.txt\"))\n    println(string(data))\n}","lang":"go","description":"Create an in-memory filesystem and read a file."},"warnings":[],"env_vars":null,"search_vec":"'back':6 'filesystem':5,12 'in-memori':2 'map':9 'mapf':1 'memori':4 'mock':14 'test':11,13","created_at":"2026-06-17T19:22:13.015044+00:00","updated_at":"2026-06-17T19:22:13.015044+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/mapfs","github":"https://github.com/josharian/mapfs","docs":"https://pkg.go.dev/github.com/josharian/mapfs#section-documentation","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"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}}