Registry / utility / liamg-memoryfs

liamg-memoryfs

JSON →
library1.6.0gogounverified

memoryfs implements an in-memory filesystem that satisfies the io/fs interface for testing and ephemeral storage.

go get github.com/liamg/memoryfs
INSTALL
IMPORT
SIG · LIAMG-MEMORYFS
L
liamg-memoryfs
utilitygov1.6.0
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.

memoryfs
github.com/liamg/memoryfs

Creates an in-memory filesystem, writes a file, and reads it back.

package main import ( "fmt" "github.com/liamg/memoryfs" ) func main() { fs := memoryfs.New() fs.WriteFile("hello.txt", []byte("world")) data, _ := fs.ReadFile("hello.txt") fmt.Println(string(data)) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.6.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
liamg-memoryfs — go get liamg-memoryfs · libregistry