Registry / utility / spf13-afero

spf13-afero

JSON →
library1.15.0gogounverified

Package afero provides a virtual filesystem abstraction for Go.

go get github.com/spf13/afero
INSTALL
IMPORT
SIG · SPF13-AFERO
S
spf13-afero
utilitygov1.15.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.

afero
github.com/spf13/afero

Create an in-memory filesystem and read/write a file

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

No known issues recorded.

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

No dependency data recorded yet.

Agent activity
6 hits · last 30 days
node
6
Resources
spf13-afero — go get spf13-afero · libregistry