https://github.com/lazychanger/go-vfs
virtual file system for go
https://github.com/lazychanger/go-vfs
filesystem go golang memory-filesystem vfs
Last synced: 9 months ago
JSON representation
virtual file system for go
- Host: GitHub
- URL: https://github.com/lazychanger/go-vfs
- Owner: lazychanger
- License: mit
- Created: 2022-03-25T05:45:59.000Z (about 4 years ago)
- Default Branch: master
- Last Pushed: 2022-04-12T06:53:24.000Z (about 4 years ago)
- Last Synced: 2024-11-07T12:52:19.627Z (over 1 year ago)
- Topics: filesystem, go, golang, memory-filesystem, vfs
- Language: Go
- Homepage:
- Size: 21.5 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# go-vfs
[](https://codecov.io/gh/lazychanger/go-vfs)
[](https://golang.org/doc/install)
[](LICENSE)
virtual file system for go
## How to use
```golang
package main
import (
"fmt"
"github.com/lazychanger/go-vfs"
_ "github.com/lazychanger/go-vfs/driver/memory"
_ "github.com/lazychanger/go-vfs/driver/os"
"io"
"log"
"os"
)
func main() {
memvfs, _ := filesystem.Open("memory:///?maxsize=1000000")
// more
wd, _ := os.Getwd()
osvfs, _ := filesystem.Open(fmt.Sprintf("os://%s/runtime", wd))
// more
}
```
## Features
- [ ] more filesystem driver. eg. s3, etcd