Registry / testing / josharian-mapfs

josharian-mapfs

JSON →
library0.0.0-20210615231426-4a35c0754cdcgogounverified

In-memory filesystem backed by a map for testing.

go get github.com/josharian/mapfs
INSTALL
IMPORT
SIG · JOSHARIAN-MAPFS
J
josharian-mapfs
testinggov0.0.0-20210615231426-4a35c0754cdc
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

mapfs
github.com/josharian/mapfs

Create an in-memory filesystem and read a file.

package main import ( "github.com/josharian/mapfs" "io/ioutil" ) func main() { fs := mapfs.New(map[string]string{"hello.txt": "Hello, World!"}) data, _ := ioutil.ReadAll(fs.Open("hello.txt")) println(string(data)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20210615231426-4a35c0754cdclatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
5 hits · last 30 days
node
4
Amazon
1
Resources
josharian-mapfs — go get josharian-mapfs · libregistry