https://github.com/kettek/go-multipath
Simple file access aggregated from multiple paths. Like PhysicsFS but far meeker.
https://github.com/kettek/go-multipath
golang multiple paths physfs physicsfs
Last synced: 11 months ago
JSON representation
Simple file access aggregated from multiple paths. Like PhysicsFS but far meeker.
- Host: GitHub
- URL: https://github.com/kettek/go-multipath
- Owner: kettek
- License: mpl-2.0
- Created: 2019-05-24T17:42:04.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-02-10T06:30:59.000Z (over 3 years ago)
- Last Synced: 2025-04-02T03:45:17.837Z (about 1 year ago)
- Topics: golang, multiple, paths, physfs, physicsfs
- Language: Go
- Size: 40 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# go-multipath
[](https://pkg.go.dev/github.com/kettek/go-multipath)
A simple library for accessing files from multiple paths.
```
var mpath multipath.Multipath
mpath.AddPath("a", multipath.FirstPriority)
mpath.AddPath("b", multipath.LastPriority)
file, err := mpath.Open("myFile")
if err != nil {
panic(err)
}
defer file.Close()
// Do stuff with file
```