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.
memfs
✓ github.com/psanford/memfs
Create an in-memory filesystem and write/read a file.
package main
import (
"fmt"
"github.com/psanford/memfs"
)
func main() {
fs := memfs.New()
fs.WriteFile("hello.txt", []byte("world"), 0644)
data, _ := fs.ReadFile("hello.txt")
fmt.Println(string(data))
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20230130182539-4dbf7e3e865elatest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.