Registry / utility / psanford-memfs

psanford-memfs

JSON →
library0.0.0-20230130182539-4dbf7e3e865egogounverified

An in-memory filesystem implementation for Go.

go get github.com/psanford/memfs
INSTALL
IMPORT
SIG · PSANFORD-MEMFS
P
psanford-memfs
utilitygov0.0.0-20230130182539-4dbf7e3e865e
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.

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.

Agent activity
8 hits · last 30 days
node
8
Resources
psanford-memfs — go get psanford-memfs · libregistry