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.