afero-opfs

module
v0.0.0-...-63052b9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 17, 2024 License: Apache-2.0

README

opfs Backend for Afero

About

It provides an afero filesystem implementation of an opfs backend.

This was created to provide a backend when used in wasm.

I'm very opened to any improvement through issues or pull-request that might lead to a better implementation or even better testing.

TO DO

  • readdir

How to use


import(
	"github.com/insensatestone/afero-s3/pkg"
)

func main() {
  opfs,_ := opfs.NewFs()

  // And do your thing
  file, _ := fs.OpenFile("file.txt", os.O_WRONLY, 0777)
  file.WriteString("Hello world !")
  file.Close()
}

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL