Registry / utility / blang-vfs

blang-vfs

JSON →
library1.0.0gogounverified

Package vfs defines an abstract file system interface and provides various implementations.

go get github.com/blang/vfs
INSTALL
IMPORT
SIG · BLANG-VFS
B
blang-vfs
utilitygov1.0.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.

vfs
✓ github.com/blang/vfs

Create an in-memory filesystem and read/write files

package main import ( "fmt" "github.com/blang/vfs" "github.com/blang/vfs/memfs" ) func main() { fs := memfs.Create() vfs.WriteFile(fs, "/hello.txt", []byte("Hello, World!"), 0644) data, _ := vfs.ReadFile(fs, "/hello.txt") fmt.Println(string(data)) }
Debug
Known issues

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
13 hits · last 30 days
node
12
Amazon
1
Resources
blang-vfs — go get blang-vfs · libregistry